rigidBody node

 
 
 

The table doesn’t list the compound vector attributes force (for), velocity (vel), and torque (tor). These attributes consist of their X, Y, and Z components.

Long name Short name Description Data type

forceX

fx

Force on the rigid body in the X direction.

float

forceY

fy

Force on the rigid body in the Y direction.

float

forceZ

fz

Force on the rigid body in the Z direction.

float

velocityX

vx

Velocity of the rigid body in the X direction.

float

velocityY

vy

Velocity of the rigid body in the Y direction.

float

velocityZ

vz

Velocity of the rigid body in the Z direction.

float

torqueX

trx

Torque on the rigid body in the X direction.

float

torqueY

try

Torque on the rigid body in the Y direction.

float

torqueZ trz Torque on the rigid body in the Z direction. float

Contact attributes

A rigid body has read-only attributes that contain data on the contact made with it during collisions. You can query the attributes in MEL commands or expressions by using the attribute names in the table that follows.

Long name Short name Description Data type

contactCount

cct

Number of contacts in the current frame.

integer

contactPosition

cnp

Position of each point contact in the current frame. The length of the array is equal to contactCount.

vector array

contactName

cnn

List of rigid body names that are in contact with the rigid body. The array is of length contactCount.

string array

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License