Click or drag to resize

VisualTurnTo Method (Vector3)

Turn to a new yaw pitch roll instantly.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public void TurnTo(
	Vector3 worldAnglesRadians
)

Parameters

worldAnglesRadians
Type: Microsoft.DirectXVector3
The rotation to turn to, relative to the world, in radians.
Examples
C#
// This example will instantly rotate a visual 1 radian around its Y axis when clicked.
[Auto("OnClick")]
void TurnToV_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.TurnTo(sender.WorldRotationRadians + new Vector3(0, 1, 0));
}
See Also