インタフェース: rigidBodyInterface
 
 
 

リアクタ ダイナミクス システムは廃止され、3ds Max 2012 から削除されました

   

rigidBodyInterface MixinInterface は、 reactorInterface.getRigidObject メソッドで返され、Reactorsimulation に参加しているオブジェクトのリジット ボディ プロパティへのアクセスを提供します。

   

Interface: rigidBodyInterface 	 

   

プロパティ:

.elasticity : float : Read|Write   

リジッド ボディの弾力性を取得/設定します。

   

.friction : float : Read|Write 

リジッド ボディの摩擦を取得/設定します。

   

.unyielding : boolean : Read|Write 

true に設定した場合、リジッド ボディの柔軟性がなくなります。

   

.disableAllCollisions : boolean : Read|Write 

true に設定した場合、リジッド ボディが衝突を計算しなくなります。

   

.useDisplayProxy : boolean : Read|Write 

true に設定した場合、リジッド ボディは .displayProxyNode を使用してプロキシ ノードのセットを表示します。

   

.displayProxyNode : node : Read|Write 

プロキシ ノードを取得/設定します。

   

.inactive : boolean : Read|Write 

true に設定した場合、Reactorsimulations から除外されます。

   

メソッド:

<integer>GetNumPrimitives() 

プリミティブの数を返します。

   

<IObject>GetPrimitive <integer>primitiveIndex 

指定したプリミティブの primitiveInterface MixinInterface を返します。

   

<node>GetPrimitiveINode <integer>primitiveIndex 

指定したプリミティブのノードを返します。

例:

resetMaxFile #noprompt --シーンをリセットします。
OK
t = Teapot() -- ティーポットを作成します。
$Teapot:Teapot01 @ [0.000000,0.000000,0.000000]
select t --ティーポットを選択します。
OK
rctMakeRBCollection() --ティーポットによる RigidBodyCollection を作成します。
OK
a = $RBCollection01.getRigidObject 1 --ティーポットの RigidBodyObject を取得します。
<IObject:RigidBodyObject>
b = a.rigidBodyInterface --ティーポットの RigidBodyInterface を取得します。
<MixinInterface:rigidBodyInterface>
b.elasticity --弾力性の値を取得します。
0.3
b.friction --摩擦の値を取得します。
0.3
b.unyielding --柔軟性のない状態かどうかを取得します。
false
b.disableAllCollisions --衝突状態を取得します。
false
b.useDisplayProxy --プロキシの表示状態を取得します。
false
b.useDisplayProxy = true --set the display proxy state to true
true
関連事項