Click or drag to resize

VisualMoveTo Method (Matrix)

Move to a new matrix location instantly.

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

Parameters

targetMatrix
Type: Microsoft.DirectXMatrix
The matrix to set the visual WorldMatrix to.
Examples
C#
// This example will move a visual to the origin and rotate it 45 degrees about the Y axis
[Auto("OnClick")]
void MoveToM_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.MoveTo(Matrix.RotationYDegrees(45));
}
See Also