Hierarchy

  • GroupBase
    • Group2D

Constructors

Properties

localMatrix: mat4 = ...
modelMatrix: mat4 = ...

Accessors

Methods

  • Add a child to the parent at a specific index.

    Parameters

    • child: Mesh

      The child to be added to the parent.

    • index: number

      The index at which the child should be added.

    Returns Group2D

    • The parent object.
  • Checks if the given child Mesh is contained within the current object.

    Parameters

    • child: Mesh

      The child Mesh to be checked.

    Returns boolean

    • Returns true if the child Mesh is contained, otherwise returns false.
  • Retrieves the child object at the specified index.

    Parameters

    • index: number

      The index of the child object to retrieve.

    Returns Mesh

    • The child object at the specified index, or null if the index is invalid.
  • Returns the index of a child object within the container.

    Parameters

    • child: Mesh

      The child object to find the index of.

    Returns number

    • The index of the child object within the container. If the child is not found, -1 is returned.
  • Removes a child at the specified index from the object's children array.

    Parameters

    • index: number

      The index of the child to be removed.

    Returns Mesh

    Returns the removed child object, or null if the index is out of range or the child does not exist.

  • Parameters

    • debugViewRenderState: RenderViewStateData

    Returns void

  • Sets the index of a child object within the object's children array.

    Parameters

    • child: Mesh

      The child object whose index will be set.

    • index: number

      The new index position for the child object.

    Returns void

    • This method does not return anything.
  • Parameters

    • x: number
    • Optionaly: number

    Returns void

  • Parameters

    • x: number
    • Optionaly: number

    Returns void

  • Swaps the positions of two children within the Object3DContainer.

    Parameters

    • child1: Mesh

      The first child to swap.

    • child2: Mesh

      The second child to swap.

    Returns void

    If either child is not a child of this Object3DContainer.

  • Swaps the position of two child objects at the specified indices.

    Parameters

    • index1: number

      The index of the first child object.

    • index2: number

      The index of the second child object.

    Returns void

    • If either index1 or index2 is out of range.