Click or drag to resize

VisualTurnTo(Axis, Double, Double) Method

Turns to a target rotation.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public void TurnTo(
	Axis axis,
	double target,
	double speed
)

Parameters

axis  Axis
The turn will be around this axis.
target  Double
The target rotation in degrees.
speed  Double
The speed to be used when turning in degrees per second.
Example
C#
// This example will turn a visual 40 degrees around the Y axis,
// at a given speed, and in the quickest direction.
void TurnToADD_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.TurnTo(Axis.Y, 40, 20);
}
See Also