Click or drag to resize

VisualRotate(Axis, Double) Method

Set the visual rotating.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public void Rotate(
	Axis axis,
	double speed
)

Parameters

axis  Axis
The axis around which to rotate.
speed  Double
The top speed to rotate at in degrees per second.
Example
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)
[Auto("OnClick")]
void RotateAD_OnClick(Visual sender, PickInfo pickInfo) {
    sender.Rotate(Axis.Y, 360);
}
See Also