RayHelper.LineSegmentAllGeomsIntersect Questions

Topics: Developer Forum, User Forum
Feb 5, 2010 at 2:31 PM

How are the values stored in a List<GeomPointPair>? Do they store from which ones were hit first (as in the first one in the list is the closest distance to the original point, and the last one is the farthest distance)? I'm using this method to fire my gun and see what is the closest object it hits. So if the closest object the bullet hits is an enemy, I can kill it. If there is an even better way of doing this, please tell me! Any help I can get would be wonderful :)