VisualRotate Method (Axis, SpeedProfile) |
Namespace: Demo3D.Visuals
public void Rotate( Axis axis, SpeedProfile speedProfile )
// This example will rotate a visual (sender) around its own Y axis when clicked, // at a speed of 360 degrees per second (1 revolution per second), after accelerating to this speed // at 180 deg/s^2. The deceleration component of the speed profile is not used. [Auto("OnClick")] void RotateASp_OnClick(Visual sender, PickInfo pickInfo) { var speed = new SpeedProfile(360, 180, 10); sender.Rotate(Axis.Y, speed); }