VisualMoveTo Method (Matrix, Double, Double) |
Move to a new matrix location at a given speed and acceleration.
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: 18.04.00
Syntaxpublic void MoveTo(
Matrix targetMatrix,
double speed,
double acc
)
Parameters
- targetMatrix
- Type: Microsoft.DirectXMatrix
Target location in Matrix form. - speed
- Type: SystemDouble
Speed to move at. - acc
- Type: SystemDouble
Acceleration to use. The acceleration value will be used to accelerate and decelerate the visual.
Examples
[Auto("OnClick")]
void MoveToMDD_OnClick(Visual sender, PickInfo pickInfo)
{
sender.MoveTo(Matrix.RotationYDegrees(45), 2, 1);
}
See Also