VisualTurnTo(Matrix, SpeedProfile) Method |
Main 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(
Matrix targetMatrix,
SpeedProfile speedProfile
)
Parameters
- targetMatrix Matrix
- The matrix to turn to, relative to the origin.
- speedProfile SpeedProfile
- The speed profile to be used when turning.
Example
void TurnToMSP_OnClick(Visual sender, PickInfo pickInfo)
{
var speed = new SpeedProfile(20, 5, 5);
sender.TurnTo(sender, Matrix.RotationY90, speed);
}
See Also