VisualTurnTo Method (Axis, Double, Double, Double) |
Turns to a target rotation.
An acceleration or deceleration of zero is handled as infinity, meaning the top speed is instantly reached, and movement is immediately stopped respectively.
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 18.04.00
Syntaxpublic void TurnTo(
Axis axis,
double target,
double speed,
double acc
)
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. The acceleration value will be used to accelerate and decelerate the visual
Examples
void TurnToADDD_OnClick(Visual sender, PickInfo pickInfo)
{
sender.TurnTo(Axis.Y, 40, 20, 5);
}
See Also