MAXScript Extensions > MAXScript Extensions for character studio > Crowd MAXScript Extensions > Crowd Behaviors >

# Speed_Vary_Behavior : MAXObject

    Speed_Vary_Behavior - superclass: ReferenceTarget; super-superclass:MAXWrapper - 8:0 - classID: #(208494708, 1851328878)

| Character Studio - Quick Navigation

Constructor

    Speed_Vary_Behavior ... SpeedVaryBehavior ...

Properties

    <speed_vary_behavior>.name String Default: "Speed Vary"

Get/set the name of the behavior.

    <speed_vary_behavior>.period Integer Default: 10 -- animatable

Specifies how many frames should elapse before a new speed is chosen.

    <speed_vary_behavior>.period_deviation Float Default: 0.5 -- animatable; Alias: Period_Deviation

Specifies the maximum amount by which Period should vary. Each time a period ends, character studio takes a random number between the negative and positive values of the Deviation setting, multiplies it by the Period setting, and adds the result to Period. Range=0.0 to 1.0.

    <speed_vary_behavior>.center_speed Float Default: 1.0 -- animatable; Alias: Center_Speed

Specifies the speed the delegate should change to. Center is a multiplier: A value of 0.0 means to stop, a value of 1.0 means to move at its average speed, and a value greater than 1.0 means to move faster than its average speed. Range=0.0 to 99,999.0.

    <speed_vary_behavior>.speed_deviation Float Default: 0.25 -- animatable; Alias: Speed_Deviation

Specifies the maximum amount by which the delegate's calculated speed (Average Speed*Center) should vary. Each time a period ends, character studio takes a random number between the negative and positive values of the Deviation setting, multiplies it by the calculated speed, and adds the result to the calculated speed. Range=0.0 to 99,999.0.

    <speed_vary_behavior>.seed Integer Default: 1 -- animatable; Alias: Speed_Vary_Seed

Specifies a seed value for randomizing the Wander behavior.

    <speed_vary_behavior>.accelPeriod Float Default: 0.5 -- animatable; Alias: Acceleration_Period

Specifies the rate at which the delegate's speed should change. An acceleration of 1.0 means that the transition to the new speed will proceed as quickly as possible to its new speed, while a value of 0.0 means the transition will take the entire period. Range=0.0 to 1.0.

    <speed_vary_behavior>.accelDeviation Float Default: 0.5 -- animatable; Alias: Acceleration_Deviation

Specifies the maximum amount by which the delegate's calculated speed (Average Speed*Center) should vary. Each time a period ends, character studio takes a random number between the negative and positive values of the Deviation setting, multiplies it by the calculated speed, and adds the result to the calculated speed. Range=0.0 to 99,999.0.

#### See Also

- Crowd : Helper

- MAXWrapper Common Properties, Operators, and Methods

- Value Common Properties, Operators, and Methods

- MAXScript Extensions in character studio