- Home /
What is purpose of ContactPoint2D.tangentImpulse and ContactPoint2D.normalImpulse?
Hi, I try to understand how collisions work.
I'm using method Physics2D.GetContacts(Collider2D collider, ContactPoint2D[] contacts);
In ContactPoint2D are two variables:
https://docs.unity3d.com/2017.1/Documentation/ScriptReference/ContactPoint2D-normalImpulse.html https://docs.unity3d.com/2017.1/Documentation/ScriptReference/ContactPoint2D-tangentImpulse.html
What I know:
normalImpulse is based on momentum- with it we can get half value of velocity of colliders.
tangentImpulse - I know it's effect of friction.
I think it's connected with collision's engines.
Somebody know something about this variables?
They're both explained in the links. What's it you want to know more about them?
I understand code when I can visualize it or do function be myself.
What's it you want to know more about them?
Everything!
I think then you need to buy a license for the unity source or look for a decompile somewhere. Then you can find out everything.