pivot
Initial origin point of rotation of the camera.
If "auto"
is given, it will use model's center as pivot.
Else, you can use any world position.
Use view3D.camera.pivot instead if you want current pivot value.
Example
pivot: "auto" (default)
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
pivot: "auto"
}
pivot: [0.03, 0, 0]
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
pivot: [
0.03,
0,
0
]
}
pivot: ["0%", "50%", "100%"]
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
pivot: [
"0%",
"50%",
"100%"
]
}