hh79 / gzdoomvr

Classic Doom/Heretic/Hexen games in stereo 3D and VR; modified version of gzdoom.
GNU General Public License v3.0
125 stars 10 forks source link

Add option to lower camera when crouching/camera above ceiling #18

Closed SinaelDOverom closed 4 years ago

SinaelDOverom commented 4 years ago

Currently when player uses the crouch bind, the player can squeese through tight places as intended, but camera position doesen't change, so the playter view ends up being inside the wall, often being able to see through unintended geometry and overall being counterintuitive.

Suggestion: add an option for "simple crouch" like in Fallout 4/Skyrim VR - where if you press the crouch button, camera will lower to the apropriate height. (in GZDoom that's half the normal distance from the floor)

Another nice option would be to automatically lower the camera when it's above ceiling, ideally with customisable amount of units below ceiling.

Here's some screenshots and a test map where issue can be demonstrated/tested: 20200426130843_1 20200426130852_1

TestMapCrouch.zip

hh79 commented 4 years ago

Fixed crounching in https://github.com/hh79/gzdoomvr/commit/e31cd566f0898d7f369cb31399bb4087cd548b22