Click or drag to resize

VisualTurnTo Method (Axis, Double, Double, Double, Double)

Turns to a target rotation.

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

Parameters

axis
Type: Demo3D.CommonAxis
The turn will be around this axis.
target
Type: SystemDouble
The target rotation in degrees.
speed
Type: SystemDouble
The speed to be used when turning in degrees per second.
acc
Type: SystemDouble
The acceleration to be used when turning in degrees per second per second.
dec
Type: SystemDouble
The deceleration to be used when turning in degrees per second per second.
Examples
C#
// This example will turn a visual 40 degrees around the Y axis,
// at a given speed and deceleration, and in the quickest direction.
void TurnToADDDD_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.TurnTo(Axis.Y, 40, 20, 5, 5);
}
See Also