Here is my “game” https://www.babylonjs-playground.com/#IFN77Q#50.
WASD - move
Mouse - look
Space - jump
When not moving, you can’t look left or right because of .sleep. The little console box shows your current linear velocity. The little box underneath tracks if you are inair or not (it’s a variable)
This is a custom player controller as the camera ellipsoid would be had to make jump and slides down slopes. The plan is the when not moving on the slope, you wont slide down.
Ever played CS:GO? Or any FPS ever? You don’t slide down slopes unless if they are too steep that is what I’m trying to make. Here is a helpful video about CS:GO. Some things are irrelevant, but see how source handels objects? If short enough, you teleport to the top of the object. See how smooth the movement is on slopes/stair clipping? That’s my goal.
Any help is appreciated. Hope this helps.