VisualMoveTo Method (Visual, Vector3, Double, Double, Double) |
Namespace: Demo3D.Visuals
public void MoveTo( Visual targetVisual, Vector3 targetLocation, double speed, double acc, double dec )
// This example will move a visual to 1 meter above the visual target // when it is clicked on, at a given speed, acceleration, and deceleration. [Auto] SimpleVisualPropertyValue<Visual> target3; [Auto("OnClick")] void MoveToVV3DDD_OnClick(Visual sender, PickInfo pickInfo) { sender.MoveTo(target3.Visual, new Vector3(0, 1, 0), 2, 1, 1); }