Click or drag to resize

VisualRotateToLocalY Method

Rotate around the local Y axis a given amount at a given speed.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public void RotateToLocalY(
	double localYDegrees,
	double degreesPerSecond
)

Parameters

localYDegrees  Double
The total angle to rotate in degrees.
degreesPerSecond  Double
The speed at which to rotate in degrees per second.
Example
C#
// This example will rotate a visual around its local Y axis (its parent's Y axis) a given amount
// at a given speed.
void RotateToLocalY_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.RotateToLocalY(90, 45);
}
See Also