Skip to main content

rotate

Typeboolean | RotateControlOptions
Defaulttrue

Options for the RotateControl.
If false is given, it will disable the rotate control.

NameTypeDefaultDescription
scalenumber1Scale factor for rotation
durationnumber300Duration of the input animation (ms)
easingfunctionEASING.EASE_OUT_CUBICEasing function of the animation

Example

rotate: true (default)

{
src: "/egjs-view3d/model/draco/alarm.glb",
rotate: true
}

rotate: false

{
src: "/egjs-view3d/model/draco/alarm.glb",
rotate: false
}

Detailed options

{
src: "/egjs-view3d/model/draco/alarm.glb",
rotate: {
scale: 5,
duration: 2000
}
}