rotate
Options for the RotateControl.
If false
is given, it will disable the rotate control.
Name | Type | Default | Description |
---|---|---|---|
scale | number | 1 | Scale factor for rotation |
duration | number | 300 | Duration of the input animation (ms) |
easing | function | EASING.EASE_OUT_CUBIC | Easing function of the animation |
Example
rotate: true (default)
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
rotate: true
}
rotate: false
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
rotate: false
}
Detailed options
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
rotate: {
scale: 5,
duration: 2000
}
}