float ReachLength { get; set; }

robot_2Generated
code_blocksInput

Description

The ReachLength property of the PlayerController class specifies the maximum distance from the player's eye position that the player can reach to interact with objects in the game world. This property is useful for determining how far the player can "use" or interact with objects, such as picking up items or activating switches.

Usage

To use the ReachLength property, you can get or set its value to adjust how far the player can reach to interact with objects. This can be useful for customizing gameplay mechanics or adjusting difficulty levels.

Example

// Example of setting the ReachLength property
PlayerController playerController = new PlayerController();
playerController.ReachLength = 5.0f; // Set the reach length to 5 units

// Example of getting the ReachLength property
float currentReachLength = playerController.ReachLength;
// Use currentReachLength for further logic