Hello!
I need to detect collisions between objects.
What I have(for both colliding) is:
- vertices(position, index, mass, velocity, net force from springs)
- edges(an array of 2 vertex indexes), includes inner edges in cases of volumetric objects(used to prevent deflection)
- surfaces(an array of 3 vertex indexes, they can be used to obtain the normal firction of surface, I think)
I need to find out:
- If the vertex is colliding with surface
- How deep the vertex has gone through the surface in case if it is colliding
- How much force and in which direction the vertex needs to have applied in order get on the surface
I'm working in 3D space.
I know that this is all a complex piece of maths and physics, but I really need this. It would be good if I could get all of this information at an easy to understand form. I also need all of those equations. Actually what I really need is to find out the normal force of contact. However, this requires to detect contact first. I hope that you can help me somehow:)