Click or drag to resize

VisualTurnTo(Visual, Matrix, Double) Method

Matrix TurnTo method.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public void TurnTo(
	Visual targetVisual,
	Matrix targetMatrix,
	double speed
)

Parameters

targetVisual  Visual
The turn will be in this visual's coordinate space. If the visual itself is passed in here it will rotate in the coordinate space of its parent, or the scene if there is no parent.
targetMatrix  Matrix
The matrix to turn to.
speed  Double
The speed to be used when turning.
Example
C#
// This example will turn a visual 90 degrees around the Y axis,
// using a given speed.
void TurnToVMD_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.TurnTo(sender, Matrix.RotationY90, 20);
}
See Also