float GroundYaw { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The GroundYaw property of the PlayerController class represents the yaw angle of the ground beneath the player. This value is expressed as a single-precision floating-point number (System.Single), and it is used to determine the orientation of the ground relative to the player.

Usage

Use the GroundYaw property to access or modify the yaw angle of the ground beneath the player. This can be useful for adjusting player movement or animations based on the ground's orientation.

Example

// Example of accessing the GroundYaw property
PlayerController playerController = new PlayerController();
float currentGroundYaw = playerController.GroundYaw;

// Example of setting the GroundYaw property
playerController.GroundYaw = 45.0f; // Set the ground yaw to 45 degrees