float AirFriction { get; set; }

robot_2Generated
code_blocksInput

Description

The AirFriction property of the PlayerController class determines the amount of friction applied to the player when they are airborne. This friction will slow down the player unless a wish velocity is present, which can counteract the friction effect.

Usage

To adjust the air friction for a player, set the AirFriction property to a value between 0 and 1. A value of 0 means no air friction is applied, while a value of 1 applies maximum friction.

Example

// Example of setting the AirFriction property
PlayerController playerController = new PlayerController();
playerController.AirFriction = 0.5f; // Sets the air friction to a moderate level