VisualMoveTo Method (Visual, Matrix, SpeedProfile) |
Namespace: Demo3D.Visuals
public void MoveTo( Visual targetVisual, Matrix targetMatrix, SpeedProfile speed )
// This example will move a visual to the target visual and rotate it 45 degrees // about the Y axis, at a speed set with a speed profile. [Auto] SimpleVisualPropertyValue<Visual> target4; [Auto("OnClick")] void MoveToVMSp_OnClick(Visual sender, PickInfo pickInfo) { var speed = new SpeedProfile(5, 2, 2); sender.MoveTo(target4.Value, Matrix.RotationYDegrees(45), speed); }