VisualMoveTo Method (Visual, Matrix, Double, Double, Double) |
Namespace: Demo3D.Visuals
public void MoveTo( Visual targetVisual, Matrix targetMatrix, double speed, double acc, double dec )
// This example will move a visual to the target visual and rotate it 45 degrees // about the Y axis, at a given speed, acceleration and deceleration. [Auto] SimpleVisualPropertyValue<Visual> target7; [Auto("OnClick")] void MoveToVMDDD_OnClick(Visual sender, PickInfo pickInfo) { sender.MoveTo(target7.Value, Matrix.RotationYDegrees(45), 2, 1, 1); }