I have a little assignment which involves collision in a 3D world. I have to create a little simulation of a “pool-table-game”. I’ve already managed it for the balls to collide ( using vectors of course) onto each other.
I’m not allowed to use any of the unity3D physics components. I have to write the “simulation” myself.

The problem is however that I do not understand how the mesh.vertices work in this matter. How do I know which vertex belongs to what face? To me this isn’t very clear, neither in the documentation.
I know how to calculate the normals( I want this to do myself as well ) if I know which vertices to use. But I can not figure out how the faces are calculated.

Afterwards I want to apply Barycentric calculations to see if the ball is intersecting with the faces of my mesh model. Performance is not the key here, as long it will work. I’m not sure if that will work?

Any tips on how to manually find the faces and what technique i could use?

I havent tested this, but I can imaginge the vertices in Mesh.vertices only contain the positions of the vertices when no rotation / translation is applied. To get from these root positions to the current position of the vertex, you can use