Im trying to implement some ‘simple’ collision detection code in a program and I found a problem.
Im currently testing for collision this way: Getting an edge of object 1and a point of object 2 to create a plane. Now, I have to know if this plane is separating the others points of obj1 and obj2 (obj1 points are on one side of the plane and obj2 points are on the other).
How can I do this? I tried finding the normal of the plane and then check for each vertex of each obj with a dot product. Is this correct?