Interface: rigidBodyInterface

The rigidBodyInterface MixinInterface is returned by the reactorInterface.getRigidObject method and provides access to rigid body properties of objects participating in the Reactor simulation.

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 from Reactor simulations.

Methods:

<integer>GetNumPrimitives()

Returns the number of Primitives.

<IObject>GetPrimitive <integer>primitiveIndex

Returns the specified Primitive's primitiveInterface MixinInterface.

<node>GetPrimitiveINode <integer>primitiveIndex

Returns the specified Primitive's node.

Example:

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