Question by
TheRealLordPotato · Jan 27, 2017 at 10:37 AM ·
collisiontriggerball
How do i get a ball to gain acceleration when hitting an object [Beginner]
Im really lost, ive tried using 'OnExitCollison' to addforce when it leaves the triggerbut it did nothing i honestly have no idea what to do. Im attempting to get a ball to go into a trigger zone and gain acceleration as it leaves.
Comment
Answer by HenryStrattonFW · Jan 27, 2017 at 02:12 PM
If the zone it is going through is set up as a trigger then you need to use OnTriggerExit and not OnCollisionExit. I find it often quite useful to pop a little Debug.Log() in those two events when I'm not sure which one is getting called.
See if that helps at all.