Class OctreeSceneComponent
Constructors
constructor
-
Creates a new instance of the component for the given scene
Parameters
Optionalscene: SceneDefines the scene to register the component in
Returns OctreeSceneComponent
Properties
Readonlychecks Is Enabled
Indicates if the meshes have been checked to make sure they are isEnabled()
Readonlyname
The component name help to identify the component in the list of scene components.
scene
The scene the component belongs to.
Methods
dispose
-
Disposes the component and the associated resources.
Returns void
get Active Mesh Candidates
get Active Sub Mesh Candidates
-
Return the list of active sub meshes
Parameters
- mesh: AbstractMesh
The mesh to get the candidates sub meshes from
Returns ISmartArrayLike<SubMesh>
the list of active sub meshes
- mesh: AbstractMesh
get Colliding Sub Mesh Candidates
-
Return the list of sub meshes colliding with a collider
Parameters
- mesh: AbstractMesh
defines the mesh to find the submesh for
- collider: Collider
defines the collider to evaluate the collision against
Returns ISmartArrayLike<SubMesh>
the list of colliding sub meshes
- mesh: AbstractMesh
get Intersecting Sub Mesh Candidates
-
Return the list of sub meshes intersecting with a given local ray
Parameters
- mesh: AbstractMesh
defines the mesh to find the submesh for
- localRay: Ray
defines the ray in local space
Returns ISmartArrayLike<SubMesh>
the list of intersecting sub meshes
- mesh: AbstractMesh
rebuild
-
Rebuilds the elements related to this component in case of context lost for instance.
Returns void
register
-
Registers the component in a given scene
Returns void
Defines the octree scene component responsible to manage any octrees in a given scene.