Hello I am trying to develop a FPS using BabylonJS and CannonJS in TypeScript.
My first problem was what type of Impostor to use as the player, end up using a Cylinder with a FixedRotation = true.
Now I place the camera on top off the Cylinder on every frame, and apply Impulses to the Cylinder based on keyboard input, and camera target.
The algorithm that I came up is the flowing (hero = Cylinder):
scene.registerBeforeRender(function () {
//Your code here
//Step