Hi, is there any way to get a callback when two objects collide? or better still attach a callback to a specific rigid body and get a callback when it collides with something?
I have seen this demo but this technique requires me to check every rigid body against every other rigid body to know if anything is colliding.
Imagine that the player in my game fires a bullet and I want to know when/if it hits anything. Testing each bullet against every object in the scene on each step is obviously not feasible.
Thanks.
Hi, is there any way to get a callback when two objects collide? or better still attach a callback to a specific rigid body and get a callback when it collides with something?
I have seen this demo but this technique requires me to check every rigid body against every other rigid body to know if anything is colliding.
Imagine that the player in my game fires a bullet and I want to know when/if it hits anything. Testing each bullet against every object in the scene on each step is obviously not feasible.
Thanks.