Skip to content

[Feature] Re-implement Camera Reset Key #29

@dhruv0154

Description

@dhruv0154

Summary The ability to reset the camera to its starting position was removed in a recent refactor (Regression). We need to re-implement a key binding (e.g., R or HOME) to instantly snap the camera back to its default coordinates and orientation.

This is a Good First Issue because the logic is straightforward and isolated to the Input/Update loop.

Why is this needed? When inspecting models or navigating large scenes, the camera often gets lost or drifts too far. A quick reset button is essential for a smooth debugging workflow.

Acceptance Criteria

Pressing the designated key (e.g., R) resets the camera's Position to the scene default (e.g., 0.0f, 0.0f, 3.0f).

Resets Yaw and Pitch to look at the center.

Ensures vectors (Front, Right, Up) are recalculated immediately.

Implementation Hints:

Look at Scene::Update() or the ProcessInput function in your main loop.

You will need access to the Camera object stored in AppState.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions