robot_2Generated
code_blocksInput

Description

The MoveStyle property of the CitizenAnimationHelper class allows you to control the movement style of a citizen model. This property can be used to force the model to either walk or run, or to let the model decide its movement style based on its current speed.

Usage

To use the MoveStyle property, you can set it to one of the predefined movement styles available in the MoveStyles enumeration. This will dictate how the citizen model animates its movement.

Example

// Example of setting the MoveStyle property
var animationHelper = new CitizenAnimationHelper();
animationHelper.MoveStyle = CitizenAnimationHelper.MoveStyles.Run; // Forces the model to run

// Alternatively, let the model decide based on speed
animationHelper.MoveStyle = CitizenAnimationHelper.MoveStyles.Auto;