v3.5.1
Returns or sets the object's local SIRotation. This acts as a shortcut to accessing the rotation through Kinematics, local KinematicState and SITransformation.
' ' This example illustrates how to get/set local rotation using ' two different approaches ' set oNull1 = Application.ActiveSceneRoot.AddNull() set oNull2 = Application.ActiveSceneRoot.AddNull() ' ACCESSING ' Access the local rotation using the KinematicState set oTransform = oNull1.Kinematics.Local.Transform set oRotation = oTransform.Rotation ' Access the local rotation using X3DObject.LocalRotation set oRotation2 = oNull2.LocalRotation ' SETTING ' Set the local rotation using the KinematicState oTransform.SetRotationFromXYZAnglesValues 0.0, 0.25, 0.0 oNull1.Kinematics.Local.Transform = oTransform ' Set the local rotation using X3DObject.LocalRotation oRotation2.SetFromXYZAnglesValues 0.0, 0.25, 0.0 oNull2.LocalRotation = oRotation2 |