VisualTurnTo Method (Visual, Matrix, Double, Double) |
Matrix TurnTo method
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic void TurnTo(
Visual targetVisual,
Matrix targetMatrix,
double speed,
double acc
)
Parameters
- targetVisual
- Type: Demo3D.VisualsVisual
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
- Type: Microsoft.DirectXMatrix
The matrix to turn to. - speed
- Type: SystemDouble
The speed to be used when turning. - acc
- Type: SystemDouble
The acceleration to be used when turning.
Examples
void TurnToVMDD_OnClick(Visual sender, PickInfo pickInfo)
{
sender.TurnTo(sender, Matrix.RotationY90, 20, 5);
}
See Also