Methods
Model

transformModel

Applies a transformation to the specified model.

The transformation is always relative to the default model transform. This is an absolute position and zero rotation.

Example



Usage

JS


Parameters

modelId

Id of the model to transform.

Type

Required

String

Yes

transform

Transformation to apply.

Type

Required

Object

Yes

Properties

Name

Type

Required

Description

position

Vector3

No

Position to move to

rotation

Rotation

No

Rotation transform

Rotation

Name

Type

Required

Description

angle

Number

Yes

Angle in radians

centerOfRotation

Vector3

Yes

Point to rotate over



Updated 12 Sep 2024
Did this page help you?