float EyeDistanceFromTop { get; set; }

robot_2Generated
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 camera's position relative to the player's head, particularly in first-person view.

Usage

Use the EyeDistanceFromTop property to adjust the vertical position of the player's eyes relative to the top of their head. This can be useful for customizing the player's perspective or adjusting the camera for different character models.

Example

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