When the “drop” falls on the “sand”, “drop” damages “sand” by its linear velocity(potential energy)
What is the expected result
Drop collisions sand, sand got damaged. If sand is dead, it’s deleted.
What is the actual result
Nothing happened. drops actually touched sand, but it’s not damaged. I added text and play sound event to check. They hit each other and velocity is surely more than 1, but the event does not work.
(I didn’t know all of your games rules. So, I made assumptions. Not all of this might apply. If not. Add more details.)
I think the issue could be the trigger once. Once a drop object is touching a sand object then it’s not going to trigger again until no sand objects are touching any sand objects.
Another possibility is that it’s checking “just damaged” before the damage is applied. It’s a per frame check. At the beginning the sand hasn’t been damaged yet. The damage flag gets reset between frames.
You’re welcome. Nice code. It’s definitely more efficient to do things like “is dead” as a sub-event of an action that applies the damage. There’s no need to check it at any other time.