Options
All
  • Public
  • Public/Protected
  • All
Menu

Class 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

  • 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

explodeSearch playground for explode

  • 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

getClassNameSearch playground for getClassName

  • getClassName(): string
  • Get class name

    Returns string

    "MeshExploder"

getMeshesSearch playground for getMeshes

  • getMeshes(): Array<Mesh>
  • "Exploded meshes"

    Returns Array<Mesh>

    Array of meshes with the centerMesh at index 0.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method