What is Incisor?
Tutorials
Key Concepts
Reddit
Stack Overflow
Deprecation Schedule

ParticleSystemRamp3() extends ParticleSystemRamp

Object representing keyframes with Vector3 values used by ParticleSystemDefinition members. [REQUIREMENT: optional code module - 'particleSystems']

new ParticleSystemRamp3()

MEMBERS

values :Array

Array of keyframes representing the ramp. Each keyframe is specified as an array with two elements. The first element must be a number representing the time of the keyframe. Ramp evaluations are performed in the range 0-1, but keyframes may specify times outside this range. The second element must be a Vector3. [DEFAULT: []]

Members below are inherited from the parent class.

inputMaximum :number

When using inputType equal to 'EmissionTime', the emission time is divided by this number and the fractional component of the result is used to look up a value in the ramp. This means that particles emitted after this time will use values that wrap around to the beginning of the ramp. When using a non-infinite emissionDuration, it is common to set this value to emissionDuration + emissionTimeRandomness so that the ramp applies over the duration of the particle emission.

Inherited From:

inputType :string

The input type used when evaluating. See nc.particleSystemRampInputTypes for valid values.

Inherited From:

interpolationType :string

The type of interpolation to apply between the keyframes. See nc.constants.particleSystemRampInterpolationTypes for valid values.

Inherited From:

type :string

Type identifier.

Inherited From:

METHODS

addKeyframe(x, y)

Adds a new keyframe. If a keyframe already exists at this time value, it is overwritten.

Parameters:
Name Type Attributes Default Description
x number    

The time value for this keyframe.

y Vector3    

The value stored at this keyframe.

isEqual(particleSystemRamp3) returns {boolean}

Tests whether another ParticleSystemRamp3 has identical contents to this ParticleSystemRamp3.

Parameters:
Name Type Attributes Default Description
particleSystemRamp3 ParticleSystemRamp3    

The ParticleSystemRamp3 to compare to.

Returns:
boolean
Methods below are inherited from the parent class.

refreshKeyframeOrder()

Refreshes the order of the keyframes, ensuring they are stored in order of increasing time.

Inherited From:

removeKeyframe(x)

Removes the keyframe with the given time value.

Parameters:
Name Type Attributes Default Description
x number    

The time value of the keyframe to remove. If no such keyframe exists, nothing is removed.

Inherited From: