インタフェース: 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--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>
c = b.GetPrimitive 1--get the Teapot's primitiveInterface
<IObject:RigidBodyObject>
c.mass--get the mass
0.0
c.mass = 1.0--setthemass
1.0
c.simulationGeometry--get the simulation geometry mode
2
c.simulationGeometry = 0--set the geometry to Bounding Box
0

関連事項