Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines the octree scene component responsible to manage any octrees in a given scene.

Hierarchy

  • OctreeSceneComponent

Index

Constructors

  • Creates a new instance of the component for the given scene

    Parameters

    • Optional scene: Scene

      Defines the scene to register the component in

    Returns OctreeSceneComponent

Properties

checksIsEnabled: true = true

Indicates if the meshes have been checked to make sure they are isEnabled()

name: "Octree" = "Octree"

The component name help to identify the component in the list of scene components.

scene: Scene

The scene the component belongs to.

Methods

  • dispose(): void
  • Disposes the component and the associated resources.

    Returns void

  • Return the list of active meshes

    Returns ISmartArrayLike<AbstractMesh>

    the list of active meshes

  • 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

  • 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

  • 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

  • rebuild(): void
  • Rebuilds the elements related to this component in case of context lost for instance.

    Returns void

  • register(): void
  • Registers the component in a given scene

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme