VisualMoveTo Method (Visual, Vector3, SpeedProfile) |
Namespace: Demo3D.Visuals
public void MoveTo( Visual targetVisual, Vector3 targetLocation, SpeedProfile speedProfile )
// This example will move a visual to 1 meter above the visual target // when it is clicked on, at a speed defined in a speed profile. [Auto] SimpleVisualPropertyValue<Visual> target; [Auto("OnClick")] void MoveToVV3Sp_OnClick(Visual sender, PickInfo pickInfo) { var speed = new SpeedProfile(5, 2, 2); sender.MoveTo(target.Visual, new Vector3(0, 1, 0), speed); }