dkgrayson / cube-jump

Platformer
1 stars 0 forks source link

bug: Collision clipping #1

Open dkgrayson opened 8 months ago

dkgrayson commented 8 months ago

How do we stop clipping when we move everything through space when loading levels? Could we clear the level, position the player, then load the level? Or is there a better method?

https://stackoverflow.com/questions/53050721/cannon-js-how-to-prevent-objects-clipping-floor-on-update

dkgrayson commented 8 months ago

I think the better solution is to use raycasting with bounding boxes of the objects' mesh. To do this we should deprecate usage of cannon.js.