インタフェース: 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 --reset the scene
OK
t = Teapot() --create a teapot
$Teapot:Teapot01 @ [0.000000,0.000000,0.000000]
select t --select the teapot
OK
rctMakeRBCollection() --create a RigidBodyCollection with the Teapot
OK
a = $RBCollection01.getRigidObject 1 --get the Teapot's RigidBodyObject
<IObject:RigidBodyObject>
b = a.rigidBodyInterface --get the Teapot's RigidBodyInterface
<MixinInterface:rigidBodyInterface>
b.elasticity --get the elasticity value
0.3
b.friction --get the friction value
0.3
b.unyielding --get the unyielding state
false
b.disableAllCollisions --get the collision state
false
b.useDisplayProxy --get the display proxy state
false
b.useDisplayProxy = true --set the display proxy state to true
true

関連事項