インタフェース: primitiveInterface
 
 
 

reactor ダイナミクス システムが廃棄され、3ds Max 2012 から削除されました

   

primitiveInterface は、 rigidBodyInterface.GetPrimitive メソッドによって返されます。

   

Interface: primitiveInterface 	 

   

プロパティ:

.mass : float : Read|Write   

プリミティブの質量を取得/設定します。

   

.simulationGeometry : integer : Read|Write 

プリミティブのシミュレーション ジオメトリを取得/設定します。有効な値は次のとおりです。

0 - バウンディング ボックスを使用

1 - バウンディング球を使用

2 - メッシュの凸状カバーを使用

3 - プロキシの凸状カバーを使用

   

.proxyGeometryNode : node : Read|Write 

プロキシのジオメトリ ノードを取得/設定します。

   

.phantom : boolean : Read|Write 

プリミティブのファントム プロパティを取得/設定します。

例:

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>
c = b.GetPrimitive 1--ティーポットの primitiveInterface を取得します。
<IObject:RigidBodyObject>
c.mass--質量を取得します。
0.0
c.mass = 1.0--質量を設定します。
1.0
c.simulationGeometry--シミュレーション ジオメトリ モードを取得します。
2
c.simulationGeometry = 0--ジオメトリをバウンディング ボックスに設定します。
0
関連事項