MAXScript Extensions > MAXScript Extensions for Particle Flow > Particle Flow Classes > Tests >

# Speed_Test : Helper

    Speed_Test - superclass: helper super-superclass:node - classID: #(1962490885, 515064320)

Value > MAXWrapper > Node > Helper > Speed_Test

| Particle Flow - Quick Navigation

Description:

Speed_Test lets the particle system check particle speed, acceleration, or the rate of circular travel, and branch accordingly. The test provides a number of variants that let you test speed or acceleration on specific axes, or simply whether the particle is accelerating or decelerating.

Constructor:

    Speed_Test...

Properties:

    <Speed_Test>.Test_Type Integer default:0

0: Velocity Magnitude - Tests the particle velocity, in system units per second, without consideration of direction. This is the default test type.

1: Velocity X/Y/Z - Tests the particle velocity on the specified axis, in system units per second, using the world coordinate system.

2: Acceleration Magnitude - Tests the particle acceleration (change in velocity), in system units per second per second, without respect to direction.

3: Acceleration X/Y/Z - Tests the particle acceleration (change in velocity) on the specified axis, in system units per second per second, using the world coordinate system.

4: Steering Rate - Tests the circular component of particle travel in degrees per second, without consideration of rotation or spinning.

5: True When Accelerates - Returns a True value when the particle velocity is increasing in value.

6: True When Decelerates - Returns a True value when the particle velocity is decreasing in value.

    <Speed_Test>.Condition_Type Integer default:1

Lets you specify whether the test passes particles on to the next event if the speed test succeeds or fails. Available for all tests except True When Accelerates/Decelerates.

    <Speed_Test>.Unit_Value Float default:300.0 --world units

The specific speed or acceleration to test for.

    <Speed_Test>.Unit_Variation Float default:0.0 --world units

The amount by which value tested for can vary randomly.

    <Speed_Test>.Angle_Value Float default:360.0 --angle

The specific angular speed or acceleration to test for.

    <Speed_Test>.Angle_Variation Float default:0.0 --angle

The amount by which the angular value tested for can vary randomly.

    <Speed_Test>.Sync_Type Integer default:0

Specifies the time frame to use when animating the Test Values and Variations. Possible values are:

0: Absolute Time - Any keys set for parameters are applied at the actual frames for which they're set.

1: Particle Age - Any keys set for parameters are applied at the corresponding frames of each particle's existence.

2: Event Duration - Any keys set for parameters are applied to each particle starting when it first enters the event.

    <Speed_Test>.Random_Seed Integer default:12345

Specifies a randomization value.

## Speed_Test Interfaces:

Interface: action

Interface: PViewItem

Interface: test

#### See Also

- Particle Flow Classes