FCBP_CMovement

Character movement (for a character / player using the character movement component). Passed with .movement(...) on a Character or Player.

Setters

Setter Effect
maxWalkSpeed(float) Walk speed in m/s (converted to cm/s internally). Default 6. Multiplied by the entity’s random scale.
maxStepHeight(float) Max step height the character can climb, already in cm (no conversion). Default 45. Multiplied by scale.
jumpZVelocity(float) Jump launch velocity in m/s (converted to cm/s). Default 6.3. Multiplied by scale.

The entity’s scale is the random value drawn between minScale and maxScale (see FCBP_ACPBasic); all three movement values are multiplied by it.

Example

FCBP_CMovement movement = FCBP_CMovement()
    .maxWalkSpeed(6.0f)
    .maxStepHeight(45.0f)
    .jumpZVelocity(6.3f);