When moving horizontally it is possible to travel through blocks. It is also possible to jump through blocks - this means we can climb up trees. I have recorded some videos:
Consider adding collisions by using an AABB (essentially a bounding box around the player). You would check against all edges if they hit a block, changing the size of the AABB will allow for crawling.
Introduction
When moving horizontally it is possible to travel through blocks. It is also possible to jump through blocks - this means we can climb up trees. I have recorded some videos:
horizontally
https://github.com/griffi-gh/kubi/assets/41990982/5d8fd408-de33-4ca4-9360-9beddff0a68b
vertically
https://github.com/griffi-gh/kubi/assets/41990982/220c726b-61a2-4816-98b3-7a35ac1d2b3f
possible solution
Consider adding collisions by using an AABB (essentially a bounding box around the player). You would check against all edges if they hit a block, changing the size of the AABB will allow for crawling.