VisualTurnTo Method (Matrix, SpeedProfile) |
Namespace: Demo3D.Visuals
public void TurnTo( Matrix targetMatrix, SpeedProfile speedProfile )
// This example will turn a visual to 90 degrees around the Y axis, // using a given speed profile. void TurnToMSP_OnClick(Visual sender, PickInfo pickInfo) { var speed = new SpeedProfile(20, 5, 5); sender.TurnTo(sender, Matrix.RotationY90, speed); }