mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

First person player camera on game engine level

Open starfleet001 opened this issue 8 months ago • 0 comments

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

The idea is to extend mtasa camera class to support first person view for player with accurate and efficient walls (objects) collision handling.

Existing script based solutions are far from perfect. With shaders it's possible to make it look good. However efficient collisions handling is not easy and usually requires several heavy processLineOfSight calls every frame (and even with this solution there are many bad hits that result in camera passing through walls). The last part would be more efficient if it's handled by the game itself in a way current camera third person view is handled.

New camera mode can be added to setCameraViewMode.

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • [x] I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

starfleet001 avatar Jun 01 '25 15:06 starfleet001