VisualMoveTo Method (Vector3, Double, Double, Double) |
Namespace: Demo3D.Visuals
public double MoveTo( Vector3 worldLocation, double speed, double acc, double dec )
// This example will move a visual a meter up when it is clicked on, // at a given speed, acceleration, and deceleration. [Auto("OnClick")] void MoveToV3DDD_OnClick(Visual sender, PickInfo pickInfo) { sender.MoveTo(sender.WorldLocation + new Vector3(0, 1, 0), 2, 1, 1); }