I am building a game, and I need the light to not go through walls like this
. How do i get the light to quit going through the wall?Models and lights in PlayCanvas do not, by default, cast shadows. The reason is that shadow casting is quite computationally expensive. A good place to start learning about shadow casting is this User Manual page:
http://developer.playcanvas.com/en/user-manual/graphics/shadows/