Skip to content

feat: Add FPVCamera component with first-person controls and update d… #2463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Swapnesh-dev
Copy link

Why

Introduce a minimal first-person camera system for interactive 3D scenes using React Three Fiber. This addresses the need for intuitive and responsive navigation controls in FPS-style applications or visualization tools.

What

Added FPVCamera component with:

Mouse-drag based yaw rotation.

Keyboard-based WASD movement.

Vertical movement support using Space and Shift keys.

Configurable props: rotationSpeed, height, and moveSpeed.

Ensured consistent world-up orientation.

Designed the implementation to be lightweight yet extensible.

Checklist

Documentation updated (docs/controls/FPVCamera.mdx)

Storybook entry added (.storybook/stories/FPVCamera.stories.tsx)

Ready to be merged (As a junior developer, I'd appreciate a review to ensure everything aligns with project standards)

Copy link

vercel bot commented Jun 10, 2025

@swapnesh839 is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codesandbox-ci bot commented Jun 10, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant