SITransformation.AddParentRotation
 
 
 

SITransformation.AddParentRotation

Description

Applies a rotation r defined in the parent space of this transformation.

C# Syntax

SITransformation.AddParentRotation( SIRotation in_pRotation, Int32 in_bIncrementEulerAngles );

Scripting Syntax

SITransformation.AddParentRotation( in_pRotation, [in_bIncrementEulerAngles] );

Parameters

Parameter Type Description
in_pRotation SIRotation rotation to apply
in_bIncrementEulerAngles Boolean True to update the Euler angles of the resulting rotation using the previous angles as the target.

Default Value: False

Examples

VBScript Example

dim t1, r1
' Create transformation.
set t1 = XSIMath.CreateTransform
' Create Rotation.
set r1 = XSIMath.CreateRotation
'Do something on t1 and r1
'Then add a rotation at the parent level
t1.AddParentRotation r1

See Also

SITransformation.AddLocalRotation SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion