How do i make it so that the moving entity cannot move through collisions

basically what i want to do is turning other entity with collision into walls that acts as a barrier for my character so it cant go through them. The game im making is 2D and i want it to stop moving once it hits the said ‘wall’. But no matter what i do it keeps going through collisions like a bull dozer, nothing seems to work.

heres the link to my editor: PlayCanvas | HTML5 Game Engine

Hi @doflalimgo and welcome!

I think the main problem is that your obstacles don’t have a rigidbody component.

https://developer.playcanvas.com/en/tutorials/collision-and-triggers/

1 Like