Click or drag to resize

VisualMoveTo Method (Matrix, SpeedProfile)

Move to a new matrix location using a speed profile.

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

Parameters

targetMatrix
Type: Microsoft.DirectXMatrix
Target location in Matrix form.
speed
Type: Demo3D.VisualsSpeedProfile
Speed profile to use.
Examples
C#
// This example will move a visual to the origin and rotate it 45 degrees
// about the Y axis, at a speed set with a speed profile.
[Auto("OnClick")]
void MoveToMSp_OnClick(Visual sender, PickInfo pickInfo)
{
    var speed = new SpeedProfile(5, 2, 2);
    sender.MoveTo(Matrix.RotationYDegrees(45), speed);
}
See Also