griffi-gh / kubi

Multithreaded voxel engine made with wgpu, a.k.a another attempt at ripping off Minecraft (with multiplayer networking)
MIT License
17 stars 1 forks source link

It is possible to go through blocks #17

Open ajh123 opened 4 months ago

ajh123 commented 4 months ago

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.

griffi-gh commented 4 months ago

yeah the collision stuff is unfinished.

(btw jumping is also kinda scuffed and needs a rework)

I'm focused on other stuff at the moment though like networking