getPosition

Returns a Vector3 with the position in 3d space of an Object.

getPosition(
	objectName: string
): Promise<Vector3>
Parameters
Description
Type

objectName

Specifies what object do we want to retrieve the information from.

string

Usage:

await modelApi.getPosition("Box");

Return value:

{
	x: 0,
	y: 0,
	z: 0,
}

Last updated