float EyeDistanceFromTop { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The EyeDistanceFromTop property of the PlayerController class specifies the distance from the top of the player's head to the position of the eyes. This property is used to determine the vertical offset of the player's camera or viewpoint in relation to the top of the player's model.

Usage

Use the EyeDistanceFromTop property to adjust the vertical position of the player's camera or viewpoint. This can be useful for customizing the player's perspective, especially in first-person or third-person camera modes.

Example

// Example of setting the EyeDistanceFromTop property
PlayerController playerController = new PlayerController();
playerController.EyeDistanceFromTop = 1.8f; // Set the eye distance from the top to 1.8 units