Speed Vary Behavior

Create panel > Helpers > Object Type rollout > Crowd > Setup rollout > New button > Speed Vary Behavior

Select a Crowd object. > Modify panel > Setup rollout > New button > Speed Vary Behavior

The Speed Vary behavior is useful for objects whose velocity changes at random as they move, such as sightseeing tourists. Its parameters let you specify how often a delegate should change speed, what speed range it should look at for a new speed, and how long it should accelerate to get to that new speed.

Procedure

To use the Speed Vary behavior

  1. Add a Speed Vary behavior to the Crowd object.

  2. Change the default settings as desired.

  3. Use Behavior Assignments to assign the behavior to a delegate or team.

Interface

Speed Vary Behavior rollout

Time group

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

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. Default=0.5. Range=0.0 to 1.0.

Speed group

The mathematical formula for the new speed is as follows: new speed = (delegate's Average Speed*Center)*(1 + RN*Center Deviation), where RN is a random number between -1 and 1.

Center: 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. Default=1.0. Range=0.0 to 99,999.0.

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. Default=0.25. Range=0.0 to 99,999.0.

Accel Period: Specifies the rate at which the delegate's speed should change in relation to the period length. A value of 0.0 means that the transition to the new speed will proceed as quickly as possible, and a value of 0.5 means the transition will take half the period. A value of 1.0 means the transition will take the entire period. Default=0.5. Range=0.0 to 1.0.

Deviation: Specifies the maximum amount by which Acceleration 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 Acceleration setting, and adds the result to Acceleration. Default=0.5. Range=0.0 to 1.0.

Seed: Specifies a seed value for randomizing the Speed Vary behavior.

 

 

 


Comments