I was makeing a game the other day and wondered how could i make a wall solid for one object but let another pass through ?
Develop games in your browser. Powerful, performant & highly capable.
anyone
One way to do it:
Add a boolean variable to the object.
on collision with wall - if variable is true - set solid enabled
on collision with wall - if variable is not true - set solid disabled