SITransformation.AddLocalRotation
 
 
 

SITransformation.AddLocalRotation

Description

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

C# Syntax

SITransformation.AddLocalRotation( SIRotation in_pRotation, Int32 in_bIncrementEulerAngles );

Scripting Syntax

SITransformation.AddLocalRotation( 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 local level
t1.AddLocalRotation r1

See Also

SITransformation.AddParentRotation SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion