MoveCamera

Summary

This function allows you to move the camera to another object and offset the position by a certain amount defined by XYZ Coordinates values.

The camera will smoothly transition from its current location to the specified object and offset position.

Parameters

Target

Type: Text Default: None

Specifies the name or ARDI ID of the asset you would like to view. If using an asset ID, begin the target with the '#' character.

Offset

Type: XYZ Coordinates Default: 1,0,0

Specifies the offset to move the camera to based on the target asset. The function will try to move to the exact position of the target asset, positioned away from the target asset an amount specified by the parameter.

Duration

Type: Float Default: 1

The duration it will take in order for the camera to move to its target location

See Also

Examples

<movecamera Target="SomeObject" />
This will find the asset in the virtual environment named SomeObject and move the camera over to it.
<movecamera Target="SomeObject" Offset="0,10,0" Duration="2"/>
This will move the camera to a position above the asset named SomeObject positioned 10 units above it on the Y plane. It will take 2 second to reach its destination.