Home Reference Source
public class | source

VectorVelocity

Extends:

InitializerVelocity → VectorVelocity

Sets the velocity property on initialized particles.

Static Method Summary

Static Public Methods
public static

Creates a VectorVelocity initializer from JSON.

Constructor Summary

Public Constructor
public

constructor(vector3d: Vector3D, theta: number): *

Constructs a VectorVelocity initializer.

Member Summary

Public Members
public

Direction vector.

public

Velocity radius span.

public

Theta.

Private Members
private

Determines whether to use the directional vector or not.

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()

From class Velocity
public

Directional vector

public

normalize(vr: *): *

Static Public Methods

public static fromJSON(json: object): VectorVelocity source

Creates a VectorVelocity initializer from JSON.

Override:

Initializer#fromJSON

Params:

NameTypeAttributeDescription
json object

The JSON to construct the instance from.

json.x number

The velocity x axis direction

json.y number

The velocity y axis direction

json.z number

The velocity z axis direction

json.theta number

The velocity theta

Return:

VectorVelocity

Public Constructors

public constructor(vector3d: Vector3D, theta: number): * source

Constructs a VectorVelocity initializer.

Override:

Velocity#constructor

Params:

NameTypeAttributeDescription
vector3d Vector3D

The directional vector for the velocity

theta number

The theta angle to use

Return:

*

void

Public Members

public dir: Vector3D source

Direction vector.

public radiusPan: Span source

Velocity radius span.

public tha: number source

Theta.

Private Members

private _useV: boolean source

Determines whether to use the directional vector or not.