Kinematics

Object Hierarchy | Related C++ Class: Kinematics

Inheritance

SIObject

ProjectItem

Property

Kinematics

Description

The Kinematics object represents the kinematics property of a X3DObject object

Methods

AddConstraint AddCustomOp AddScriptedOp AddScriptedOpFromFile
AnimatedParameters2 BelongsTo operator EvaluateAt GetICEAttributeFromName
IsA IsAnimated2 IsClassOf operator IsEqualTo operator
IsKindOf IsLocked operator IsSelected operator LockOwners
SetAsSelected operator SetCapabilityFlag operator SetLock TaggedParameters
UnSetLock      
       

Properties

Application Branch operator BranchFlag operator Capabilities operator
Categories Constraints EvaluationID Families operator
FullName operator Global operator Help HierarchicalEvaluationID
ICEAttributes Local operator LockLevel operator LockMasters operator
LockType operator Model Name operator NestedObjects
ObjectID Origin OriginPath Owners
PPGLayout operator Parameters operator Parent Parent3DObject
Selected operator Singleton operator Type operator  
       

Examples

VBScript Example

'
' This illustrates how to convert a position from local coordinates
' to global coordinates
'
set oRoot = Application.ActiveProject.ActiveScene.Root
if Selection.Count = 0 then
        ' create a sample scene
        set oModel = oRoot.AddModel
        oModel.posx.value = 5
        set oObject = oModel.AddNull
        oObject.posx.value = 5
else
        set oObject = Selection(0)
end if
'
' get local position
'
Set v3Pos = XSIMath.CreateVector3
call v3Pos.Set( oObject.posx.value, oObject.posy.value, oObject.posz.value )
logmessage "local position = " & v3Pos.x & ", " & v3Pos.y & ", " & v3Pos.z
'
' transform local to global position
'
Set v3GlobPos = XSIMath.MapObjectPositionToObjectSpace (oObject.Kinematics.Global.Transform, oObject.Kinematics.Local.Transform, v3Pos)
logmessage "global position = " & v3GlobPos.x & ", " & v3GlobPos.y & ", " & v3GlobPos.z

See Also

X3DObject.Kinematics