Core Components
Object3DInstance
This component lets you use any manually instantiated object that extends THREE.Object3D
in threlte.
Example
<script>
import { Object3D } from 'three'
import { Object3DInstance } from 'threlte'
const object = new Object3D()
</script>
<Object3DInstance {object} position={{ y: 1 }} />
Properties
// required
object: THREE.Object3D
// optional
viewportAware: boolean = false
position: Position | undefined = undefined
scale: Scale | undefined = undefined
rotation: Rotation | undefined = undefined
lookAt: LookAt | undefined = undefined
castShadow: boolean | undefined = undefined
receiveShadow: boolean | undefined = undefined
frustumCulled: boolean | undefined = undefined
renderOrder: number | undefined = undefined
visible: boolean | undefined = undefined
Bindings
inViewport: boolean
Events
viewportenter: undefined
viewportleave: undefined