Skip to content
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

Avoid positioning third-person camera code in or behind blocks #199

Open
stackotter opened this issue Jun 1, 2024 · 0 comments
Open

Avoid positioning third-person camera code in or behind blocks #199

stackotter opened this issue Jun 1, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request rendering

Comments

@stackotter
Copy link
Owner

At the moment the third-person camera is just a fixed distance away from the player's head. However, this leads to the camera being able to go inside blocks. We should be able to reuse the block ray tracing code in Game.getTargetedBlock to determine a safe distance to place the camera (just by pulling that code out into a more generic function where you can plug in whatever rays and distances you require).

@stackotter stackotter added bug Something isn't working enhancement New feature or request rendering labels Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request rendering
Projects
None yet
Development

No branches or pull requests

1 participant