setRotation
setRotation
Signature
setRotation(objectName: string, rotation: Euler): Promise<void>Parameters
Name
Type
Required
Description
Returns
Usage
// Rotate 45 degrees around Y axis
await api.setRotation("Chair", { x: 0, y: 45, z: 0 });
// With explicit rotation order
await api.setRotation("Chair", { x: 90, y: 0, z: 0, order: "XYZ" });Notes
Last updated