1. @threlte/core
  2. Object3D

@threlte/core

Object3D

Import

Source

Github View Source Code

Package

NPM View Package

Related Docs


Example

You might want to use this component to pass as a reference to other components:

<script>
  import { Object3D, PerspectiveCamera } from '@threlte/core'

  let target
</script>

<PerspectiveCamera lookAt={target} />
<Object3D bind:object={target} />

Properties

// optional
position: Position | undefined = undefined
scale: Scale | undefined = undefined
rotation: Rotation | undefined = undefined
lookAt: LookAt | undefined = undefined
viewportAware: boolean = false
castShadow: boolean | undefined = undefined
receiveShadow: boolean | undefined = undefined
frustumCulled: boolean | undefined = undefined
renderOrder: number | undefined = undefined
visible: boolean | undefined = undefined
dispose: boolean | undefined = undefined
userData: Record<string, any> | undefined = undefined

Bindings

inViewport: boolean
object: THREE.Object3D

Events

viewportenter: undefined
viewportleave: undefined

Previous <- Group