box2dlights icon indicating copy to clipboard operation
box2dlights copied to clipboard

Old issue regarding Ray

Open adam-law opened this issue 10 years ago • 2 comments

I'd like to "re-open" an old issue from Google Code, where a Box2d sensor blocks the ray casting used by box2dLights. The part of the code to return -1 in the callback when the Fixture is a sensor, is still commented out, hence the blockage.

While people could amend the source themselves, they'd have to do so on every release of box2dLights, which is obviously an inconvenience.

Edit: Just to let others know, filters set on the light via setContactFilter() works, but you'll have to set the the appropriate category / group / mask bits, for it work.

adam-law avatar Jul 24 '15 23:07 adam-law

Think, we could add some global switch that can be used to turn on/off the sensors ignorance.

rinold avatar Jul 31 '15 20:07 rinold

thanks :)

adam-law avatar Aug 03 '15 21:08 adam-law