Click or drag to resize

VisualMoveTo(Vector3) Method

Move to a new location instantly.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.01.00
Syntax
C#
public void MoveTo(
	Vector3 worldLocation
)

Parameters

worldLocation  Vector3
The location to move to.
Example
C#
// This example will move a visual a meter up when it is clicked on.
[Auto("OnClick")]
void MoveToV3_OnClick(Visual sender, PickInfo pickInfo)
{
    sender.MoveTo(sender.WorldLocation + new Vector3(0, 1, 0));
}
See Also