Last updated 1 month ago
Sets the position of an object base on given x, y, z values.
setPosition( objectName: string, position: Vector3, ): Promise<void>
objectName
Specifies what object do we want to retrieve the information from.
string
position
x, y, z coordinates of the new position.
x
y
z
Usage:
await modelApi.setPosition('Box', { x: 100, y: 100, z: 0 });
Vector3