Click or drag to resize

VisualTurnTo Method (Matrix, SpeedProfile)

Main Matrix TurnTo method

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public void TurnTo(
	Matrix targetMatrix,
	SpeedProfile speedProfile
)

Parameters

targetMatrix
Type: Microsoft.DirectXMatrix
The matrix to turn to, relative to the origin.
speedProfile
Type: Demo3D.VisualsSpeedProfile
The speed profile to be used when turning.
Examples
C#
// This example will turn a visual to 90 degrees around the Y axis,
// using a given speed profile.
void TurnToMSP_OnClick(Visual sender, PickInfo pickInfo)
{
    var speed = new SpeedProfile(20, 5, 5);
    sender.TurnTo(sender, Matrix.RotationY90, speed);
}
See Also