Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

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

@iWas-Coder

Description

@iWas-Coder

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

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working🛟 help wantedExtra attention is needed

Type

No type

Projects

Status

wip

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions