08-05-2005, 02:41 AM
Basically, you just find the closest point in a given plane/polygon to a sphere bounding the player object. Then, check to see if that point is inside the sphere using the 3d distance formula. If it is, then move the sphere back the overlapped distance, along the poly normal vector, starting at the intersection point.
btw: That screen looks cool, but I couldn't try the demo because *SDL missing insertion point*. Did you use a custom version of SDL?
btw: That screen looks cool, but I couldn't try the demo because *SDL missing insertion point*. Did you use a custom version of SDL?