libgdx / box2dlights

Fork of box2dlights by Kalle Hamalainen
Apache License 2.0
256 stars 81 forks source link

Old issue regarding Ray #72

Open adam-law opened 9 years ago

adam-law commented 9 years ago

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.

rinold commented 9 years ago

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

adam-law commented 9 years ago

thanks :)