Click or drag to resize

VisualMoveTo(Matrix, Double, Double, Double) Method

Move to a new matrix location at a given speed, acceleration and deceleration. An acceleration or deceleration of zero is handled as infinity, meaning the top speed is instantly reached, and movement is immediately stopped respectively.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public void MoveTo(
	Matrix targetMatrix,
	double speed,
	double acc,
	double dec
)

Parameters

targetMatrix  Matrix
Target location in Matrix form.
speed  Double
Speed to move at.
acc  Double
Acceleration to use.
dec  Double
Deceleration to use.
Example
C#
// This example will move a visual to the origin and rotate it 45 degrees
// about the Y axis, at a given speed, acceleration and deceleration.
[Auto("OnClick")]
void MoveToMDDD_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.MoveTo(Matrix.RotationYDegrees(45), 2, 1, 1);
}
See Also