rigidSolver is undoable, queryable, and editable.
This command sets the attributes for the rigid solver
In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
-create(-cr)
|
|
|
|
Creates a new rigid solver.
|
|
-current(-cu)
|
|
|
|
Sets rigid solver as the current solver.
|
|
-interpenetrationCheck(-ic)
|
|
|
|
Checks for interpenetrating rigid bodies in the scene.
|
|
-interpenetrate(-i)
|
|
![query query](../gfx/query.gif)
|
|
Allows the two rigid bodies listed to interpenetrate.
Default: interpenetration is off for all bodies.
|
|
-collide(-c)
|
|
![query query](../gfx/query.gif)
|
|
Disallows the interpenetration of the two rigid bodies listed.
Default: Collide is on for all bodies.
|
|
-showInterpenetration(-si)
|
|
![query query](../gfx/query.gif)
|
|
Displays the interpenetrating objects in a different color.
|
|
-showCollision(-sc)
|
|
![query query](../gfx/query.gif)
|
|
Displays the colliding objects in a different color.
|
|
-autoTolerances(-at)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Turns the auto tolerance calculation on and off. The auto tolerances
calculation will override the default or user defined values of the
step size and collision tolerance value that is calculated based
on the objects in the scene.
Default: 0 (off)
|
|
-stepSize(-s)
|
float
|
![query query](../gfx/query.gif)
|
|
Sets the solvers step size. This is the maximum size of a single step
the
solver will take at one time.
Range: 0.0004 - 0.100
Default: 0.0333
|
|
-collisionTolerance(-ct)
|
float
|
![query query](../gfx/query.gif)
|
|
Sets the collision tolerance. This is the error at which two objects
are considered to have collided.
Range: 0.0005 - 1.000
Default: 0.02
|
|
-friction(-f)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Turns friction on and off for the an the objects in the simulation.
Default value: on
|
|
-bounciness(-b)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Turns bounciness on and off for the an the objects in the
simulation.
Default value: on
|
|
-dynamics(-d)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Turns dynamics on and off for the an the objects in the simulation.
Default value: on
|
|
-solverMethod(-sm)
|
int
|
![query query](../gfx/query.gif)
|
|
Sets the solver method. The choices are 0 | 1 | 2.
0 = Euler (fastest/least acurate),
1 = Runge-Kutta ( slower/more acurate),
2 = adaptive Runge-Kutta
(slowest/most acurate).
The default is 2 (adaptive Runge-Kutta)
|
|
-displayVelocity(-dv)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Displays the velocity vectors.
Default value: off
|
|
-displayCenterOfMass(-dcm)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Displays the center of mass icon.
Default value: on
|
|
-velocityVectorScale(-vs)
|
float
|
![query query](../gfx/query.gif)
|
|
scales the velocity vector display.
Default value: 1.0
|
|
-displayConstraint(-dc)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Displays the constraint vectors.
Default value: on
|
|
-cacheData(-cd)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Turns the cache on fall all rigid bodies in the system.
Default value: off
|
|
-deleteCache(-del)
|
|
![query query](../gfx/query.gif)
|
|
Deletes the cache for all rigid bodies in the system.
|
|
-startTime(-stt)
|
float
|
![create create](../gfx/create.gif) ![query query](../gfx/query.gif)
|
|
Sets the start time for the solver.
|
|
-state(-st)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Turns the rigid solver on or off.
|
|
-contactData(-ctd)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Turns the contact data information on/off for all rigid bodies.
Default value: off
|
|
-statistics(-sta)
|
boolean
|
![query query](../gfx/query.gif)
|
|
Turns the statistic information on/off for all rigid bodies.
Default value: off
|
|
-rigidBodies(-rb)
|
|
|
|
Returns a list of rigid bodies in the solver.
|
|
-rigidBodyCount(-rbc)
|
|
|
|
Returns the number of rigid bodies in the solver.
|
|