MAXScript Extensions > MAXScript Extensions for Reactor >

# Interface: rigidBodyInterface

The Reactor dynamics system has been retired and REMOVED from 3ds Max 2012.

The rigidBodyInterface MixinInterface is returned by the reactorInterface.getRigidObject method andprovides access to rigid body properties of objects participating in theReactorsimulation.

    Interface: rigidBodyInterface

Properties:

    .elasticity : float : Read|Write

Get/Set the elasticity of the rigid body.

    .friction : float : Read|Write

Get/Set the friction of the rigid body.

    .unyielding : boolean : Read|Write

When set to true , the rigid body will be unyielding.

    .disableAllCollisions : boolean : Read|Write

When set to true , the rigid body will not calculate collisions.

    .useDisplayProxy : boolean : Read|Write

When set to true , the rigid body will display the proxy node set using .displayProxyNode.

    .displayProxyNode : node : Read|Write

Get/Set the Proxy Node.

    .inactive : boolean : Read|Write

When set to true , the rigid body will be excluded fromReactorsimulations.

Methods:

    <integer>GetNumPrimitives()

Returns the number of Primitives.

    <IObject>GetPrimitive <integer>primitiveIndex

Returns the specified Primitive'sprimitiveInterfaceMixinInterface.

    <node>GetPrimitiveINode <integer>primitiveIndex

Returns the specified Primitive's node.

EXAMPLES:
    resetMaxFile #noprompt --reset the scene
    OK
    t = Teapot() --create a teapot
    $Teapot:Teapot01 @ [0.000000,0.000000,0.000000]
    select t --select the teapot
    OK
    rctMakeRBCollection() --create a RigidBodyCollection with the Teapot
    OK
    a = $RBCollection01.getRigidObject 1 --get the Teapot's RigidBodyObject
    <IObject:RigidBodyObject>
    b = a.rigidBodyInterface --get the Teapot's RigidBodyInterface
    <MixinInterface:rigidBodyInterface>
    b.elasticity --get the elasticity value
    0.3
    b.friction --get the friction value
    0.3
    b.unyielding --get the unyielding state
    false
    b.disableAllCollisions --get the collision state
    false
    b.useDisplayProxy --get the display proxy state
    false
    b.useDisplayProxy = true --set the display proxy state to true
    true

#### See Also

- Interface: reactorInterface

- Interface: primitiveInterface

- MAXScript Extensions for Reactor