Vector3 CameraOffset { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The CameraOffset property in the PlayerController class specifies the offset of the camera relative to the player. This property is used to adjust the camera's position, allowing for customization of the camera's view in relation to the player's position. The offset is represented as a Vector3, which allows for adjustments in the X, Y, and Z axes.

Usage

To use the CameraOffset property, you can set it to a Vector3 value that represents the desired offset of the camera from the player's position. This can be useful for creating different camera perspectives, such as third-person or over-the-shoulder views.

Example usage:

PlayerController playerController = new PlayerController();
playerController.CameraOffset = new Vector3(0, 1.5f, -3); // Set the camera offset to be slightly above and behind the player

Example

PlayerController playerController = new PlayerController();
playerController.CameraOffset = new Vector3(0, 1.5f, -3); // Set the camera offset to be slightly above and behind the player