VglObject3d
This is the base mixin component for most object components in VueGL, corresponding THREE.Object3D. Object3d components inside a object3d component are added as children via THREE.Object3D.prototype.add() method.
VglObject3d components inside default slots are added as children.
props
-
positionvector3 (optional)The object’s local position as a 3D vector.
-
rotationeuler (optional)The object’s local rotation as a euler angle.
-
rotation-quaternionquaternion (optional)The object’s local rotation as a quaternion (specified in x, y, z, w order). Do not use in conjunction with the rotation prop, since they both control the same property of the underlying THREE.Object3D object.
-
scalevector3 (optional)The object’s local scale as a 3D vector.
-
cast-shadowboolean (optional)Whether the object gets rendered into shadow map.
-
receive-shadowboolean (optional)Whether the material receives shadows.
-
namename (optional)Optional name of the object.
-
hiddenboolean (optional)Whether the object is visible.
computed properties
-
instThe THREE.Object3D instance.
-
parentThe parent THREE.Object3D instance.
dependencies:
vglObject3d
methods
-
emitAsObject3d()Emit an event in the
object3dsnamespace.