If false the object will be ignored for raycasting (e.g. pointer events). Default is true.
Optional
raycastSet a raycast preference for the object:
lod
will use the raycast mesh lod if available (default). This is usually a simplified mesh for raycasting.bounds
will use the bounding box of the object for raycasting. This is very fast but not very accurate.full
will use the full mesh for raycasting. This is the most accurate but also the slowest option.NOTE: Needle Engine's Raycast system will use Mesh BVH by default - so event 'full' is usually faster than default three.js raycasting.
Get or set the world position of the Object3D.
Added by Needle Engine.
Get or set the world quaternion of the Object3D.
Added by Needle Engine.
Get or set the world rotation of the Object3D.
Added by Needle Engine.
Get or set the world scale of the Object3D.
Added by Needle Engine.
Add a Needle Engine component to the Object3D.
The added component instance.
Check if the given object is contained in the hierarchy of this object or if it's the same object.
The object to check.
True if the object is contained in the hierarchy, false otherwise.
Destroys the Object3D and all its Needle Engine components.
Get a Needle Engine component from the Object3D.
The component instance or null if not found.
Get a Needle Engine component from the Object3D or its children. This will search on the current Object and all its children.
The component instance or null if not found.
Get a Needle Engine component from the Object3D or its parents. This will search on the current Object and all its parents.
The component instance or null if not found.
Get all components of a specific type from the Object3D.
Optional
arr: []Optional array to fill with the found components.
An array of components.
Get all components of a specific type from the Object3D or its children. This will search on the current Object and all its children.
Optional
arr: []Optional array to fill with the found components.
An array of components.
Get all Needle Engine components of a specific type from the Object3D or its parents. This will search on the current Object and all its parents.
Optional
arr: []Optional array to fill with the found components.
An array of components.
Get or add a Needle Engine component to the Object3D. If the component already exists, it will be returned. Otherwise, a new component will be added.
The component instance.
Allows to control e.g. if an object should be exported