VisualTurnTo(Visual, Matrix, SpeedProfile) Method |
Main Matrix TurnTo method.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic void TurnTo(
Visual targetVisual,
Matrix targetMatrix,
SpeedProfile speedProfile
)
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.
- speedProfile SpeedProfile
- The speed profile to be used when turning.
Example
void TurnToVMSP_OnClick(Visual sender, PickInfo pickInfo)
{
var speed = new SpeedProfile(20, 5, 5);
sender.TurnTo(sender, Matrix.RotationY90, speed);
}
See Also