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