VisualTurnTo Method (Axis, Double, SpeedProfile, RotationDirection) |
Namespace: Demo3D.Visuals
public void TurnTo( Axis axis, double target, SpeedProfile speedProfile, RotationDirection direction )
// This example will turn a visual 40 degrees around the Y axis, // at a given speed profile, and in the clockwise direction. void TurnToADSPRD_OnClick(Visual sender, PickInfo pickInfo) { var speed = new SpeedProfile(5, 20, 5); sender.TurnTo(Axis.Y, 40, speed, RotationDirection.Clockwise); }