ssatguru / BabylonJS-CharacterController

A CharacterController for BabylonJS
Apache License 2.0
215 stars 46 forks source link

moveWithCollision and calcMovePOV jitter #66

Open Armasyll opened 1 year ago

Armasyll commented 1 year ago

There's a jitter of +-0.001-0.01(est.) when using calcMovePOV and moveWithCollision that becomes clear(er) when viewing contrasting-coloured meshes.

ssatguru commented 1 year ago

@Armasyll anyway you can demo this?

Armasyll commented 1 year ago

https://github.com/Armasyll/ssatguru-babylonjs-charactercontroller-test Given how quickly the player moves, the jitter is less noticable :v darn My own tests were having the character move at half, to a quarter, of the walk speed

ssatguru commented 1 year ago

Thanks for the nice demo. I am sorry but I still donot see the issue. I didn't see any jitters during walk. Yes on stairs and slope there is some. My current method of slope detection is not perfect. I plan to change that to use ray cast.