Skip to main content

pivot

Type"auto" | Array<number | string>
Default"auto"

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)

{
src: "/egjs-view3d/model/draco/alarm.glb",
pivot: "auto"
}

pivot: [0.03, 0, 0]

{
src: "/egjs-view3d/model/draco/alarm.glb",
pivot: [
0.03,
0,
0
]
}

pivot: ["0%", "50%", "100%"]

{
src: "/egjs-view3d/model/draco/alarm.glb",
pivot: [
"0%",
"50%",
"100%"
]
}