VisualMoveTo Method (Matrix, Double, Double, Double) |
Namespace: Demo3D.Visuals
public void MoveTo( Matrix targetMatrix, double speed, double acc, double dec )
// 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); }