Home Reference Source
import MeshZone from 'three-nebula/src/zone/MeshZone.js'
public class | source

MeshZone

Extends:

Zone → MeshZone

Uses a three THREE.Geometry to determine the zone parameters.

Constructor Summary

Public Constructor
public

constructor(bounds: THREE.Geometry | Mesh, scale: number, ThreeGeometry: THREE.Geometry): *

Member Summary

Public Members
public
public

scale: *

public

Method Summary

Public Methods
public
public

Returns true to indicate this is a MeshZone.

Inherited Summary

From class Zone
public
public
public
public
public

type: *

public

vector: *

public

crossing(particle: *): *

public
public

Determines if this zone is a BoxZone.

public

Determines if this zone is a LineZone.

public

Determines if this zone is a MeshZone.

public

Determines if this zone is a PointZone.

public

Determines if this zone is a ScreenZone.

public

Determines if this zone is a SphereZone.

private abstract

_bound(particle: *)

private abstract

_cross(particle: *)

private abstract

_dead(particle: Particle)

Sets the particle's dead property to true if required.

Public Constructors

public constructor(bounds: THREE.Geometry | Mesh, scale: number, ThreeGeometry: THREE.Geometry): * source

Constructs a Zone instance.

Override:

Zone#constructor

Params:

NameTypeAttributeDescription
bounds THREE.Geometry | Mesh

the geometry or mesh that will determine the zone bounds

scale number

the zone scale

ThreeGeometry THREE.Geometry

the three geometry class

Return:

*

void

Public Members

public geometry: * source

public scale: * source

public supportsCrossing: boolean source

Override:

Zone#supportsCrossing

Public Methods

public getPosition(): * source

Override:

Zone#getPosition

Return:

*

public isMeshZone(): boolean source

Returns true to indicate this is a MeshZone.

Override:

Zone#isMeshZone

Return:

boolean