VisualMoveTo Method (Vector3, SpeedProfile) |
Namespace: Demo3D.Visuals
public void MoveTo( Vector3 worldLocation, SpeedProfile speedProfile )
// This example will move a visual a meter up when it is clicked on, // at a speed defined in a speed profile. [Auto("OnClick")] void MoveToV3Sp_OnClick(Visual sender, PickInfo pickInfo) { var speed = new SpeedProfile(5, 2, 2); sender.MoveTo(sender.WorldLocation + new Vector3(0, 1, 0), speed); }