Vixen
02b45cc4
csharp
public readonly record struct PlayerCamera

The two entities a player's camera is made of.

Read the guide page for this →

Remarks

Two entities and not one, because [26](../../../docs/plan/26-virtual-cameras.md) separates "where a point of view is" from "which point of view is live". A game adding a second shot for a cutscene gives it a higher priority on the same channel and never touches either of these.

Fields and properties (2)

  • public Entity Eye

    The real Camera, with the CameraDirector that drives it.

  • public Entity Shot

    The VirtualCamera the director is currently blending towards.

Methods (1)

  • public PlayerCamera(Entity Eye, Entity Shot)

    The two entities a player's camera is made of.

Used by (3)

  • PlayerRigThirdPersonShooter
  • PlayerCameraTestsVixen.Engine.Tests
  • PlayerCamerasVixen.Engine