The state machine module builds a state machine network for the group agents. It also handles state changes during the simulation.
Attributes
Attributes | Type | Overridable | Description |
---|---|---|---|
behave3d | bool | no | If true, the agents will move freely in 3D as if they were particles. The Particle operator is going to be applied instead of the Pelvis and Foot Operators. |
fixLegStretch | bool | no | If true, compensate the leg stretching. |
frameRate | string | yes | Frequency at which the frames are read and displayed. |
gravityField | string | no | The name of the gravity field. |
heightField | string | no | The name of the height field. |
heightFieldOffset | double | no | An extra offset applied to your agent heights from the ground. |
seed | int | no | Seed random value. |
startFrame | double | yes | The start frame of the state machine clips. If set to a value lower than 0, a random value is used instead. |
state | int | yes | The current state. |
debug | bool | no | Enables module debug drawing. |
stateRandomDelay | vector2 | yes | This attribute accept a range (by default is 0,0). If you put a range of 5, 20 then every agent will have a random delay between 5 to 20 frames when changing state. If you want a specific delay without the random, use the same value in both the vector components, i.e. 5,5. |
adjustHeightOnAgentCreationOnly | bool | no | If on, the agent heights are adapted only on the first frame. |
rayCastGravityField | bool | no | If set to true samples the gravity field using a ray cast, otherwise it uses the closest point |
setStateOnAgentCreationOnly | bool | no | Sets the state on agent creation only |
setFrameRateOnAgentCreationOnly | bool | no | Sets the frame rate on agent creation only |
allowPathSearch | bool | no | if on, the state machine will search a path to reach the new state if it is not directly connected to the current state. If a path is found all the states in between are played as well as the new state. |
disableFootLock | bool | yes | Disables the foot lock |