Open jack27121 opened 1 year ago
what would a collision_leave event do? I am confused as to what this would actually require and how it would be used?
presumably the same thing as this: https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnCollisionExit.html
what would a collision_leave event do? I am confused as to what this would actually require and how it would be used?
When a collision event is triggered. Then it stays triggered until whichever object leaves. It is the point that it stops being triggered that the collision leave/exit should trigger.
Thinking about it more, these would all be useful
I've heard tell of some trigger system being worked on, i don't know if that encapsulates all this
Yes this is describing the Trigger system that we have planned (it will be New Runtime and next year before we deliver it)
Is your feature request related to a problem?
having a trigger object is useful. It would usually be something like this, in a step event
using the collision event would be more useful though, but you can't check for when the collision stops. And so you can't reset the trigger afterwards, unless you're using the step event, or alarms anyway.
Describe the solution you'd like
If there existed a collision leave event. Then that would make using collision events more useful in many tasks, and in turn make the games more optimized
Describe alternatives you've considered
you could reset the states with an alarm, but i still believe a collision leave event would have many more use cases than i can think of
Additional context