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.
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