FreeFlyCameraComponent

Translates the camera in its local frame: input X moves along Right, Y along Up, Z along Front. Also exposes Look for mouse-driven yaw/pitch updates. Movement is unconstrained on Y (true 6DoF fly cam) — for ground-locked movement, use FpsCameraComponent.

Properties

Speed

(float) { get; set } = 10f: Movement speed in world units per second.

LookSensitivity

(float) { get; set } = 0.005f: Mouse look sensitivity in radians per pixel.

Public Methods

Move

public void Move(Vector3 input, float deltaTime)

Translates the camera. input is a per-axis amount in [-1, 1]: X = right, Y = up, Z = forward.

Parameters:

  • input (Vector3)
  • deltaTime (float)

Look

public void Look(float dxPixels, float dyPixels)

Rotates the camera by mouse-pixel deltas. Positive dxPixels turns right, positive dyPixels looks down (screen Y).

Parameters:

  • dxPixels (float)
  • dyPixels (float)