Skip to content

Documentation / @ripl/vue-3d / RiplCamera

Variable: RiplCamera ​

const RiplCamera: RiplComponent<RiplCameraProps, Camera>

Defined in: vue-3d/src/components/camera.ts:64

Views the enclosing 3D context, optionally with pointer orbit, pan and zoom.

A camera belongs to the context rather than the scene graph, so this component renders nothing and can sit anywhere inside a <ripl-context-3d>. Its props are written straight through — a camera is not an element, so it takes no part in <ripl-transition>.

Example ​

ts
<ripl-camera :position="[0, 2, 5]" :target="[0, 0, 0]" interactions/>