The recent update to the Doom default world in our game engine introduces physics-based interactions for all meshes, enhancing the physics/capsule-based camera's dynamic navigation. However, stair navigation remains a challenge, with players currently using the spacebar to jump over them. A possible approach to achieving smoother, more natural stair traversal is implementing a raycasting method, taking advantage of the physics-enabled environment to allow the camera to seamlessly adapt to stair geometry.
The recent update to the Doom default world in our game engine introduces physics-based interactions for all meshes, enhancing the physics/capsule-based camera's dynamic navigation. However, stair navigation remains a challenge, with players currently using the spacebar to jump over them. A possible approach to achieving smoother, more natural stair traversal is implementing a raycasting method, taking advantage of the physics-enabled environment to allow the camera to seamlessly adapt to stair geometry.
Example 1:
Example 2:
Source: https://github.com/PanosK92/SpartanEngine/blob/62d215a29465d0d70c88535b0d6c261a181613ba/runtime/World/Components/Camera.cpp#L346