VisualTurnTo Method (Matrix, Double, Double) |
Matrix TurnTo method.
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(
Matrix targetMatrix,
double speed,
double acc
)
Parameters
- targetMatrix
- Type: Microsoft.DirectXMatrix
The matrix to turn to, relative to the origin. - speed
- Type: SystemDouble
The speed to be used when turning. - acc
- Type: SystemDouble
The acceleration to be used when turning. The acceleration value will be used to accelerate and decelerate the visual.
Examples
void TurnToMDD_OnClick(Visual sender, PickInfo pickInfo)
{
sender.TurnTo(Matrix.RotationY90, 20, 5);
}
See Also