X3DObject.HasStaticKinematicState

X3DObject.HasStaticKinematicState operator

説明

オブジェクトに基本ポーズがある場合は、True を戻します。基本ポーズは、StaticKinematicState プロパティで表わされます。

C#構文

Boolean X3DObject.HasStaticKinematicState();

スクリプト構文

oBoolean = X3DObject.HasStaticKinematicState();

戻り値

Boolean

VBScript の例

NewScene , false

set oRoot = Application.ActiveProject.ActiveScene.Root

set oNull = oRoot.AddPrimitive( "Null","MyNull")

oNull.Kinematics.Global.Parameters("posy").Value = 6.0

set oCube = oRoot.AddGeometry("Cube","MeshSurface")

set oEnv = oCube.ApplyEnvelope(oNull)

if oCube.HasStaticKinematicState then

	Application.LogMessage "The X3DObject has a StaticKinematicState property."

else

	Application.LogMessage "The X3DObject does not have a StaticKinematicState property."

end if

' Expected results:

'INFO : The X3DObject has a StaticKinematicState property.

関連項目

StaticKinematicState X3DObject.GetStaticKinematicState