C
CruelBus
Guest
Here's a scenario: (edited)
There is a log being pushed over the edge of a cliff.
The log has a single sensor fixture that covers its full length.
The cliff has a single sensor fixture that covers its edge.
The log may move or rotate while hanging over the cliff..
I want the point where the log crosses the cliff to constantly emit particles.
I know that when the sensors first collide, there is a single collision event that is fired and no further collision events will occur until the 2 sensors are no longer overlapping.
The collision event between 2 sensors does not contain any phy_collision_points.
I can test the overlapping as much as I want, to check if the overlap is still happening, but can not get an updated collision list.
Is there a better way to handle this interaction? Maybe spam the creation and destruction of sensors to force new collision events?
SOLVED: I made more cliff sensors of a smaller size to more accurately track the overlap using physics_test_overlap , and then used the x and y of those sensors as the spawn location for particles.
There is a log being pushed over the edge of a cliff.
The log has a single sensor fixture that covers its full length.
The cliff has a single sensor fixture that covers its edge.
The log may move or rotate while hanging over the cliff..
I want the point where the log crosses the cliff to constantly emit particles.
I know that when the sensors first collide, there is a single collision event that is fired and no further collision events will occur until the 2 sensors are no longer overlapping.
The collision event between 2 sensors does not contain any phy_collision_points.
I can test the overlapping as much as I want, to check if the overlap is still happening, but can not get an updated collision list.
Is there a better way to handle this interaction? Maybe spam the creation and destruction of sensors to force new collision events?
SOLVED: I made more cliff sensors of a smaller size to more accurately track the overlap using physics_test_overlap , and then used the x and y of those sensors as the spawn location for particles.
Last edited by a moderator: