Point light going through wall

I have a point light which is going through a wall in a simple scene. Is there any way to prevent that?



thanks in advance!

try using model.setQuestBucket

http://i.imgur.com/OLtov.png

The wall is actually more of a U shape than a V shape. It is one single geometry.

P represents the point light. The light shines on both the outer and inner wall for some reason.

I set the wall (Its parent node) to wall.setQueueBucket(Bucket.Opaque); and it did not change anything.

By default, there’s no shadowing, so lights will always “go through walls”. Maybe this wiki page helps.

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:light_and_shadow