rigidSolver [-autoTolerances boolean] [-bounciness boolean] [-cacheData boolean] [-collide] [-collisionTolerance float] [-contactData boolean] [-create] [-current] [-deleteCache] [-displayCenterOfMass boolean] [-displayConstraint boolean] [-displayVelocity boolean] [-dynamics boolean] [-friction boolean] [-interpenetrate] [-interpenetrationCheck] [-rigidBodies] [-rigidBodyCount] [-showCollision] [-showInterpenetration] [-solverMethod int] [-startTime float] [-state boolean] [-statistics boolean] [-stepSize float] [-velocityVectorScale float]
rigidSolver は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
リジッド ソルバのアトリビュートを設定します。なし
戻り値の型は照会モードでは照会フラグが基になります。
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
-create(-cr)
|
|
|||
|
||||
-current(-cu)
|
|
|||
|
||||
-interpenetrationCheck(-ic)
|
|
![]() |
||
|
||||
-interpenetrate(-i)
|
|
![]() ![]() |
||
|
||||
-collide(-c)
|
|
![]() ![]() |
||
|
||||
-showInterpenetration(-si)
|
|
![]() ![]() |
||
|
||||
-showCollision(-sc)
|
|
![]() ![]() |
||
|
||||
-autoTolerances(-at)
|
boolean
|
![]() ![]() |
||
|
||||
-stepSize(-s)
|
float
|
![]() ![]() |
||
|
||||
-collisionTolerance(-ct)
|
float
|
![]() ![]() |
||
|
||||
-friction(-f)
|
boolean
|
![]() ![]() |
||
|
||||
-bounciness(-b)
|
boolean
|
![]() ![]() |
||
|
||||
-dynamics(-d)
|
boolean
|
![]() ![]() |
||
|
||||
-solverMethod(-sm)
|
int
|
![]() ![]() |
||
|
||||
-displayVelocity(-dv)
|
boolean
|
![]() ![]() |
||
|
||||
-displayCenterOfMass(-dcm)
|
boolean
|
![]() ![]() |
||
|
||||
-velocityVectorScale(-vs)
|
float
|
![]() ![]() |
||
|
||||
-displayConstraint(-dc)
|
boolean
|
![]() ![]() |
||
|
||||
-cacheData(-cd)
|
boolean
|
![]() ![]() |
||
|
||||
-deleteCache(-del)
|
|
![]() ![]() |
||
|
||||
-startTime(-stt)
|
float
|
![]() ![]() ![]() |
||
|
||||
-state(-st)
|
boolean
|
![]() ![]() |
||
|
||||
-contactData(-ctd)
|
boolean
|
![]() ![]() |
||
|
||||
-statistics(-sta)
|
boolean
|
![]() ![]() |
||
|
||||
-rigidBodies(-rb)
|
|
![]() |
||
|
||||
-rigidBodyCount(-rbc)
|
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// Set the playback time range to [1, 100] playbackOptions -min 1 -max 100; // Create a poly cube named "floor" polyCube -w 10 -h 0.10 -d 10 -sx 10 -sy 1 -sz 10 -ax 0 1 0 -name floor; // Create a poly sphere named "ball", then move it to 0 9 0 polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -name ball; move -r 0 9.0 0; // Create a new rigid body solver rigidSolver -create -name rigidSolver1; // Set the floor to passive rigid body select floor; rigidBody -passive -solver rigidSolver1 -name passiveRigidBody; // Set the ball to active rigid body select ball; rigidBody -active -solver rigidSolver1 -name activeRigidBody; // Add a gravity field, and connect it to ball gravity -pos 0 0 0 -m 9.8 -dx 0 -dy -1 -dz 0 -name gravityField; connectDynamic -f gravityField activeRigidBody; // Play play -w; // Set the rigid solver to allow the ball to interpenetrate the floor, then replay currentTime -e 1; rigidSolver -e -interpenetrate passiveRigidBody activeRigidBody rigidSolver1; play -w; // Set the rigid solver to disallow the ball to interpenetrate the floor, replay currentTime -e 1; rigidSolver -e -collide passiveRigidBody activeRigidBody rigidSolver1; play -w; // Set the rigid solver to turn off the bounciness, replay currentTime -e 1; rigidSolver -e -bounciness 0 rigidSolver1; play -w;