🔹Add Model Transformation to the Scene

addModelTransform:

refId

objId of the object

required

string

initialPosition

default: [0, 0, 0]

optional

[float, float, float]

finalPosition

default: [0, 0, 0]

optional

[float, float, float]

initialRotation

default: [0, 0, 0]

optional

[float, float, float]

finalRotation

default: [0, 0, 0]

optional

[float, float, float]

initialScale

default: [1, 1, 1]

optional

[float, float, float]

finalScale

default: [1, 1, 1]

optional

[float, float, float]

length

default: 2 (default duration of your animation is 2 sec )

optional

number

// IDE.addModelTransform({
    refId: objId,
    initialPosition: [0, -10, -2],
    finalPosition: [0, -3, 0],
    initialRotation: [0, 0, 0],
    finalRotation: [degreesToRadians(30), 0, 0],
    initialScale: [5, 5, 5],
    finalScale: [4, 4, 4],
    length:2
 })

Last updated