center
Center of the camera rotation.
If "auto"
is given, it will use the center of the model's bounding box as the pivot.
Else, you can use any world position as the pivot.
Example
center: "auto" (default)
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
center: "auto"
}
center: [0.03, 0, 0]
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
center: [
0.03,
0,
0
]
}