babylon.quarks - v1.0.0
    Preparing search index...

    Class MeshSurfaceEmitter

    Emits from the surface of a Babylon mesh (Unity's Shape: Mesh, Unreal's Skeletal/Static Mesh Location): a point picked at random over the triangles, weighted by their area, moving along the triangle's normal out of its front face (the outside of a closed mesh) at the particle's start speed. The mesh's vertices are read once, when it is set, in the mesh's own space, and laid in the emitter's space as they are, moved by transform; moving the mesh node afterwards does not move the shape. A mesh without an index buffer is read as a plain triangle list. A shape without a mesh emits from the origin along +Z.

    Implements

    Index
    transform?: ShapeTransform

    Offset, rotation and scale of the mesh within the particle system.

    type: string = 'mesh_surface'

    The shape's type in effect files.

    • get mesh(): Mesh | undefined

      The mesh emitted from. Setting it reads its positions and indices; a mesh without indices is read as a triangle list (vertices 0-1-2, 3-4-5, ...), and a mesh without positions, or with no whole triangle, emits from the origin.

      Returns Mesh | undefined

    • set mesh(mesh: Mesh | undefined): void

      The mesh emitted from. Setting it reads its positions and indices; a mesh without indices is read as a triangle list (vertices 0-1-2, 3-4-5, ...), and a mesh without positions, or with no whole triangle, emits from the origin.

      Parameters

      • mesh: Mesh | undefined

      Returns void