Click or drag to resize

VisualRotate Method (Axis, SpeedProfile)

Set the visual rotating.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public void Rotate(
	Axis axis,
	SpeedProfile speedProfile
)

Parameters

axis
Type: Demo3D.CommonAxis
The axis around which to rotate.
speedProfile
Type: Demo3D.VisualsSpeedProfile
The speed profile to be used to rotate.
Examples
C#
// 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);
}
See Also