the object's unique identifier
Allows to control e.g. if an object should be exported
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 quaternion of the Object3D.
Added by Needle Engine.
Get or set the world quaternion of the Object3D.
Added by Needle Engine.
Remove a component from this object. Expected a component instance
the removed component (equal to the passed in component)
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.
call to destroy this object including all components that are attached to it. Will destroy all children recursively
Remove a Needle Engine component from the Object3D.
if the object is enabled in the hierarchy (usually equivalent to
visible
)