This command creates a rigid body from a polygonal or nurbs surface.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
active (act) | bool | ||
|
|||
angularVelocity (av) | bool | ||
|
|||
applyForceAt (afa) | unicode | ||
|
|||
bounciness (b) | float | ||
|
|||
cache (c) | bool | ||
|
|||
centerOfMass (com) | float, float, float | ||
|
|||
collisions (cl) | bool | ||
|
|||
contactCount (cc) | bool | ||
|
|||
contactName (cn) | bool | ||
returns all the rigid body names which are in contact with this shape. One name for each contact will be returned.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
contactPosition (cp) | bool | ||
|
|||
damping (dp) | float | ||
|
|||
deleteCache (dc) | bool | ||
|
|||
dynamicFriction (df) | float | ||
|
|||
force (f) | bool | ||
|
|||
ignore (ig) | bool | ||
|
|||
impulse (i) | float, float, float | ||
|
|||
impulsePosition (imp) | float, float, float | ||
|
|
|||
initialVelocity (iv) | float, float, float | ||
|
|||
layer (l) | int | ||
|
|||
lockCenterOfMass (lcm) | bool | ||
|
|||
mass (m) | float | ||
|
|||
name (n) | unicode | ||
|
|||
orientation (o) | float, float, float | ||
|
|||
particleCollision (pc) | bool | ||
|
|||
passive (pas) | bool | ||
Creates a rigid body that is passive. A passive rigid body does not react to collisions but active rigid bodies can collide with it. Dynamic Fields will not effect a passive rigid body. Only passive rigid bodies can be keyframed. |
|||
position (p) | float, float, float | ||
|
|||
removeShape (rs) | unicode | ||
solver (slv) | unicode | ||
The name of the solver which this rigid node is to resided. If the solver does not exists then the rigid body will not be created. If the edit flag is thrown add the solver exists, the rigid body will be moved to that solver. |
|||
spinImpulse (si) | float, float, float | ||
|
|||
standInObject (sio) | unicode | ||
|
|||
staticFriction (sf) | float | ||
|
|||
tesselationFactor (tf) | int | ||
|
|||
velocity (vel) | bool | ||
|
Derived from mel command maya.cmds.rigidBody
Example:
import pymel.core as pm
import maya.cmds as cmds
# Creates a rigid body with a initial velocity of 10 in the x
# direction, a bounciness of 0.5 and a static friction coefficent
# of 0.4.
#
pm.rigidBody( n='myRigidBody', active=True, iv=(10, 0, 0), b=0.5, sf=0.4 )