VisualMoveTo(Vector3, Double) Method |
Move to a new location given a speed.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic double MoveTo(
Vector3 worldLocation,
double speed
)
Parameters
- worldLocation Vector3
- The location to move to.
- speed Double
- The speed to move at.
Return Value
DoubleThe time taken to move.
Example
[Auto("OnClick")]
void MoveToV3D_OnClick(Visual sender, PickInfo pickInfo)
{
sender.MoveTo(sender.WorldLocation + new Vector3(0, 1, 0), 2);
}
See Also