how I check collision with box2dlights in libgdx?
问题 It is possible to detect when a body is under light? ( Collision with the light and a body ) How I check this with libgdx? Sorry for my english... 回答1: It could be easy to implements with raycasting : With a point light, you have to perform a raycast from your body object to the light object, if the first returned body is the light then your object is under light. With a directional (infinite) light you have to raycast from your object body toward light direction opposite, if raycast not