|
Is there some kind of way that I can limit the number of contact points collision will register? When swinging a weapon it usually registers anywhere from 2-4 contacts, which is definitely not the effect I want.
(comments are locked)
|
|
So just ignore the other contact points and only look at the first in the array. Explanation plox!
Sep 02 '11 at 02:17 AM
TheEmeralDreamer
You see multiple contact points in the Collision.contacts array when you get OnCollisionEnter. Only look at collision.contacts[0].
Sep 02 '11 at 02:20 AM
Waz
I see. I'm using an OnTriggerEnter function so does that still apply?
Sep 02 '11 at 02:26 AM
TheEmeralDreamer
OnTriggerEnter doesn't report contact points. Do you actually just mean you get the OnTrigerEnter multiple times... once for each Collider composing the weapon?
Sep 02 '11 at 02:34 AM
Waz
Well this is what occurs. I swing a Weapon into a model and it registers a function that is called when the weapon(a trigger) enters the model. This function is called multiple times, leading me to think that either the trigger enters the model multiple times, hence multiple contact points. How does OnTriggerEnter handle it?
Sep 02 '11 at 02:38 AM
TheEmeralDreamer
(comments are locked)
|
