Greetings,
I am making the FPS Tutorial to improve my knowledge, but I am facing this line :
Looking at the documentation, I don’t see anything useful.
Must I suppose that collision.contacts [0] refers to collision.contacts.point ?
Greetings,
I am making the FPS Tutorial to improve my knowledge, but I am facing this line :
Looking at the documentation, I don’t see anything useful.
Must I suppose that collision.contacts [0] refers to collision.contacts.point ?
http://answers.unity3d.com/questions/12053/collision-contacts
From what I understood, when two objects collide, there can be multiple points of contact, so by writing contacts [0}, we are taking the first point where the two objects collide. From there, we can get the position of the point (collision.contacts[0].point), the normal (collision.contacts[0].normal), etc.