VisualTurnTo(Visual, Matrix, Double, Double) Method |
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.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic void TurnTo(
Visual targetVisual,
Matrix targetMatrix,
double speed,
double acc
)
Parameters
- targetVisual Visual
- The turn will be in this visual's coordinate space.
If the visual itself is passed in here it will rotate in the coordinate space of its parent, or the scene if there is no parent.
- targetMatrix Matrix
- The matrix to turn to.
- speed Double
- The speed to be used when turning.
- acc Double
- The acceleration to be used when turning. The acceleration value will be used to accelerate and decelerate the visual.
Example
void TurnToVMDD_OnClick(Visual sender, PickInfo pickInfo)
{
sender.TurnTo(sender, Matrix.RotationY90, 20, 5);
}
See Also