Home Reference Source
public class | source

MeshRenderer

Extends:

BaseRenderer → MeshRenderer

Direct Subclass:

SpriteRenderer

Constructor Summary

Public Constructor
public

constructor(container: object, THREE: object)

Member Summary

Public Members
public
Private Members
private

_body: *

private
private

Method Summary

Public Methods
public

isThreeSprite(particle: *): *

public

onParticleCreated(particle: *)

public

onParticleDead(particle: *)

public

onParticleUpdate(particle: *)

public
public

rotate(particle: *)

public

scale(particle: *)

Inherited Summary

From class BaseRenderer
public

system: *

public

The class type.

public

init(system: *)

public

Logs the renderer type being used when in development mode.

public abstract

onParticleCreated(particle: *)

public abstract

onParticleDead(particle: *)

public abstract

onParticleUpdate(particle: *)

public abstract

onSystemUpdate(system: *)

public

remove()

Public Constructors

public constructor(container: object, THREE: object) source

Override:

BaseRenderer#constructor

Params:

NameTypeAttributeDescription
container object

An Object3D container, usually a THREE.Scene

THREE object

THREE Api

Public Members

public container: * source

Private Members

private _body: * source

private _materialPool: * source

private _targetPool: * source

Public Methods

public isThreeSprite(particle: *): * source

Params:

NameTypeAttributeDescription
particle *

Return:

*

public onParticleCreated(particle: *) source

Override:

BaseRenderer#onParticleCreated

Params:

NameTypeAttributeDescription
particle *

public onParticleDead(particle: *) source

Override:

BaseRenderer#onParticleDead

Params:

NameTypeAttributeDescription
particle *

public onParticleUpdate(particle: *) source

Override:

BaseRenderer#onParticleUpdate

Params:

NameTypeAttributeDescription
particle *

public onSystemUpdate() source

Override:

BaseRenderer#onSystemUpdate

public rotate(particle: *) source

Params:

NameTypeAttributeDescription
particle *

public scale(particle: *) source

Params:

NameTypeAttributeDescription
particle *