I have a 3D scene with a ball that's moving with a rigidbody and a goal. I want to trigger an actionlist when a point is scored. But only when the ball is moving into the goal from the right direction. Both directions are possible, but only 1 should trigger the actionlist.
What's the easiest way to achieve this? Is there a way to check the ball's direction?
Comments
Personally, I'd probably approach it through scripting - a custom trigger that reads the object's position when entering. A dot product between the Trigger's up direction, and the relative position between the two, should be able to determine which side of the Trigger it's on.