Open ndarilek opened 10 years ago
I will try to look a it this weekend
Excellent. At the moment I have a very hacky check in my EnterFrame to detect new collisions, but it'd be good to refactor to onContactBegin/End or something similar.
Cool, any updates? I keep finding places that'd benefit from knowing when a collision begins or ends. Would a PR providing this functionality be accepted?
I find myself missing Begin/EndContact methods. The current framework is good enough to detect when a collision is happening, but not when it begins or ends.
I'm not sure what the best way to handle this is. Maybe onContactBegin/onContactEnd functions similar to onContact?
Failing that, how would one easily detect that a collision began to play an appropriate sound?
Thanks.