Class OctreeSceneComponent
Hierarchy
- OctreeSceneComponent
Index
Constructors
Properties
Methods
Constructors
constructor
-
Creates a new instance of the component for the given scene
Parameters
-
scene: Scene
Defines the scene to register the component in
Returns OctreeSceneComponent
-
Properties
Readonly checks IsEnabledSearch playground for checksIsEnabled
Indicates if the meshes have been checked to make sure they are isEnabled()
Readonly nameSearch playground for name
The component name help to identify the component in the list of scene components.
sceneSearch playground for scene
The scene the component belongs to.
Methods
disposeSearch playground for dispose
-
Disposes the component and the associated ressources.
Returns void
get Active Mesh CandidatesSearch playground for getActiveMeshCandidates
-
Return the list of active meshes
Returns ISmartArrayLike<AbstractMesh>
the list of active meshes
get Active Sub Mesh CandidatesSearch playground for getActiveSubMeshCandidates
-
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
-
get Colliding Sub Mesh CandidatesSearch playground for getCollidingSubMeshCandidates
-
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
-
get Intersecting Sub Mesh CandidatesSearch playground for getIntersectingSubMeshCandidates
-
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
-
rebuildSearch playground for rebuild
-
Rebuilds the elements related to this component in case of context lost for instance.
Returns void
registerSearch playground for register
-
Registers the component in a given scene
Returns void
Defines the octree scene component responsible to manage any octrees in a given scene.