Skip to content

Transit vehicle follow camera can attach low and centered #1

@mayor-modder

Description

@mayor-modder

Problem

When directly following some transit vehicles, especially subway or train vehicles, the first-person camera can attach near rail level and around the center of the vehicle instead of using the expected front/eye-level placement.

Observed behavior

  • The issue can happen when selecting a vehicle directly, not only when following a person who enters a vehicle.
  • Subway follow can feel like the camera is on the rails.
  • The camera can appear centered in the vehicle instead of forward-facing near the front.

Initial code evidence

The follow transform uses train-style positioning when EntityFollower.TryGetPosition() detects train navigation, but the offset selection depends on CameraDataModel.ScopeVehicle. CameraTransformer.CheckForVehicleScope() may classify an individual train/subway car as VehicleType.Unknown, so the train positioning path can run with the small default offset.

Likely files:

  • EntityFollower.cs
  • Transformer/CameraTransformer.cs
  • Transformer/FinalTransforms/FollowEntityFinalTransform.cs

Acceptance criteria

  • Directly following subway/train vehicles uses the intended train/subway vertical and forward offset.
  • Vehicle type resolution works for individual cars and controller/root vehicles.
  • Camera placement remains stable after long play sessions and repeated follow transitions.
  • Local playtesting covers subway/train, bus, and ordinary road vehicle follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-workTracked by an agent-assisted workflowarea-cameraCamera positioning, transforms, and view behaviorpriority-highHigh priority issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions