RBCollection : ヘルパー
RBCollection - superclass: Helper; super-superclass:Node - classID: #(72697407, 2075537247)
リアクタ ダイナミック システムは廃止され、3ds Max 2012 から削除されました。
説明:
リジッド ボディ コレクションは、リジッド ボディのコンテナとして動作するヘルパー オブジェクトです。下位レベルでは、そのコレクション内のボディに対するリジッド ボディの動作を解決するために使用される数学メソッドを、コレクションによって指定することもできます。
コンストラクタ:
RBCollection ... rctRBCollection ...
プロパティ
True に設定した場合、RPCollection が無効になります。
.odeSolver(ODE_Solver) : integer
ODE ソルバーを指定します。[拡張機能](Advanced)ロールアウトの[ODE ソルバ](ODE Solver)領域にあるラジオ ボタンに対応しています。
有効な値は次のとおりです。
0 - オイラー (既定値)
1 - ルンゲ クッタ
インタフェース
Interface: rctRBCollectionInterface
プロパティ
.rigidBodies : node by value array : Read|Write
RBCollection 内のリジッド ボディ オブジェクトの配列を取得/設定します。
例:
|
rbc = RBCollection()--create an RBCollection
$RBCollection:RBCollection01 @ [0.000000,0.000000,0.000000]
s = Sphere pos:[100,0,0]--create a Sphere
$Sphere:Sphere01 @ [100.000000,0.000000,0.000000]
b = Box pos:[200,0,0]--create a Box
$Box:Box01 @ [200.000000,0.000000,0.000000]
rbc.rigidBodies = #(s,b)--add both objects to the RBCollection
#($Sphere:Sphere01 @ [100.000000,0.000000,0.000000], $Box:Box01 @ [200.000000,0.000000,0.000000])
select rbc--select the RBCollection
OK
max modify mode--change to Modify tab - the objects are on the list!
OK
rbc.rigidBodies--get the content of the list
#($Sphere:Sphere01 @ [100.000000,0.000000,0.000000], $Box:Box01 @ [200.000000,0.000000,0.000000])
|
メソッド
<boolean>AddRigidBody <node>bodyNode
オブジェクトをコレクションに追加します。成功したら true を戻します。
<boolean>RemoveRigidBody <integer>bodyIndex
インデックス指定したオブジェクトをコレクションから削除します。成功したら true を戻します。
<boolean>RemoveRigidBodyByINode <node>bodyNode
指定したオブジェクトをコレクションから削除します。成功したら true を戻します。
<integer>GetNumRigidBodies()
コレクション内のオブジェクトの数を返します。
<IObject>getRigidObject <integer>bodyIndex
渡されたインデックスで指定されたオブジェクトを返します。
注:
このメソッドは現在壊れており、常に undefined を返します。
既存の回避策は、たとえば次のように、ノードのユーザ プロパティで RigidObject のプロパティを値として設定することです。
setUserProp $ "Mass" 123.4 --質量を 123.4 に設定
以下は、reactor によって割り当てられるユーザ プロパティのリストです。
|
Allowed_Penetration = 0.000000
Disable_Collisions = 0
Display_Proxy = Sphere01
Ellasticity = 0.21--note incorrect spelling, required to set Elasticity.
Friction = 0.5
Inactive = 0
Mass = 123.4
Phantom = 0
Proxy_Geometry = Sphere01
Quality_Type = 3
Shell_Radius = 0.050000
Simulation_Geometry = 3
Unyielding = 0
Use_Display_Proxy = 0
|