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

Fix the weapon's model leaving camera's viewport when rotating it #27

Open
iWas-Coder opened this issue May 13, 2024 · 0 comments
Open
Assignees
Labels
🐛 bug Something isn't working 🛟 help wanted Extra attention is needed

Comments

@iWas-Coder
Copy link
Member

Describe your issue

The weapon's model position in the 3D world space coordinate system only gets adjusted each frame by the camera's position. The problem is that it doesn't take into account where the camera's looking at; so whenever the camera looks around, the weapon's model gets lost out of the camera's viewport.

Steps to reproduce

  1. Launch the game in offline mode.
  2. Rotate the camera with the mouse.
  3. Notice how the weapon's model doesn't stay static in the same position.

What was the expected result?

The weapon's model should always stay in the same position, as it's attached somehow to the camera.

Put here any screenshots or videos (optional)

No response

@iWas-Coder iWas-Coder added the 🐛 bug Something isn't working label May 13, 2024
@iWas-Coder iWas-Coder moved this to backlog in Sparky Game Roadmap May 13, 2024
@iWas-Coder iWas-Coder moved this from backlog to wip in Sparky Game Roadmap May 13, 2024
@iWas-Coder iWas-Coder self-assigned this May 13, 2024
@iWas-Coder iWas-Coder added the 🛟 help wanted Extra attention is needed label May 20, 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 🛟 help wanted Extra attention is needed
Projects
Status: wip
Development

No branches or pull requests

1 participant