FollowCameraComponent

Keeps the camera at a fixed offset from a target node every frame.

Properties

Target

(Node?) { get; set }: The node the camera follows. When null, the component is a no-op.

Offset

(Vector3) { get; set } = new(0f, 2f, -5f): World-space offset from the target's position.

Public Methods

OnLateUpdate

public override void OnLateUpdate(float deltaTime)

Parameters:

  • deltaTime (float)