Raycasting extension: wall collision stopped working

Hi everyone!

I’m making a MakeCode Arcade game using the raycasting / 3D render extension, but the wall collision stopped working.

The player/camera can move through the walls, even though the tiles are marked as walls in the tilemap. The collision was working before, but after adding/changing parts of the game with the raycasting extension, it no longer blocks the player.

Project link: https://makecode.com/_JxxcbtFKsKDF

Could someone please take a look and help me understand what is breaking the wall collision?

Thank you!

2 Likes

Welcome back! :waving_hand:
@WoofWoof just solved this same problem in this thread– the 3D collisions will dissapear if you delete the ‘myself sprite’ using the block ‘destroy all sprites of kind player’, since the myself sprite is automatically ‘player’ kind.
So, just don’t use the ‘player’ spritekind like in this fix and your code will work!

2 Likes