Click or drag to resize

VisualMoveTo Method (Vector3, Double, Double)

Move to a new location given a speed and acceleration.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public void MoveTo(
	Vector3 worldLocation,
	double speed,
	double acc
)

Parameters

worldLocation
Type: Microsoft.DirectXVector3
The location to move to.
speed
Type: SystemDouble
The speed to move at.
acc
Type: SystemDouble
Acceleration to use.
Examples
C#
// This example will move a visual a meter up when it is clicked on,
// at a given speed and acceleration.
[Auto("OnClick")]
void MoveToV3DD_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.MoveTo(sender.WorldLocation + new Vector3(0, 1, 0), 2, 1);
}
See Also