MeshExploder

Class used to explode meshes (ie. to have a center and move them away from that center to better see the overall organization)

Hierarchy

  • MeshExploder

Index

Constructors

Methods

Constructors

constructor

Find examples in Playground
  • Explodes meshes from a center mesh.

    Parameters

    • meshes: Array<Mesh>

      The meshes to explode.

    • Optional centerMesh: Mesh

      The mesh to be center of explosion.

    Returns MeshExploder

Methods

explode

Find examples in Playground
  • explode(direction?: number): void
  • Explodes meshes giving a specific direction

    Parameters

    • Optional direction: number

      Number to multiply distance of each mesh's origin from center. Use a negative number to implode, or zero to reset.

    Returns void

getClassName

Find examples in Playground
  • getClassName(): string
  • Get class name

    Returns string

    "MeshExploder"

getMeshes

Find examples in Playground
  • getMeshes(): Array<Mesh>
  • "Exploded meshes"

    Returns Array<Mesh>

    Array of meshes with the centerMesh at index 0.

Generated using TypeDoc