Home Reference Source
public class | source

Velocity

Extends:

Initializer → Velocity

Abstract class for Velocity initializers.

Constructor Summary

Public Constructor
public

Constructs a Velocity intitializer instance.

Member Summary

Public Members
public

Directional vector

Method Summary

Public Methods
public

normalize(vr: *): *

Inherited Summary

From class Initializer
public static abstract

Returns a new instance of the initializer from the JSON object passed.

public static

Determines if the initializer requires a Web GL API to be provided to its constructor.

public
public

type: *

public

init(emitter: Emitter, particle: Particle): *

Initializes the property on the emitter or particle.

public abstract

initialize(target: object)

Place custom property initialization code in this method in the subclass.

public abstract

reset()

Public Constructors

public constructor(): * source

Constructs a Velocity intitializer instance.

Override:

Initializer#constructor

Return:

*

void

Public Members

public dirVec: Vector3D source

Directional vector

Public Methods

public normalize(vr: *): * source

Params:

NameTypeAttributeDescription
vr *

Return:

*