Hi defolders,
I’m trying to figure out how to detect when a collision between two objects end.
Is there a message similar to on “collision_response” that informs when two objects are no longer colliding with each other? Or how can I detect it?
Hopefully any one can help me out.
Thanks in advance.
Cheers!
I solved it by making one of my objects a trigger since triggers actually inform when the collision ended.
It’d be nice though if this were also posible with kinematic and dynamic objects though.
britzl
3
Yes, that’s exactly the use case for triggers. They are cheap to use.
It’s perfectly acceptable to have both a kinematic/dynamic object and a trigger object.
3 Likes
That’s a great piece of advice birtzl. I haven’t thought on that possibility. I’m still new with Defold.
Thanks a lot!