Fixed a little bug I left on reversing the list :S:

This commit is contained in:
NemesisMate 2016-04-05 08:58:30 +01:00
parent 2a44aa4aec
commit 513eedaea1

View File

@ -787,14 +787,14 @@ public class PhysicsSpace {
* PhysicsRayTestResults
*/
public List rayTest(Vector3f from, Vector3f to) {
List results = new LinkedList();
LinkedList<PhysicsRayTestResult> results = new LinkedList<PhysicsRayTestResult>();
rayTest(from, to, results);
if(results.getFirst().getHitFraction() > results.getLast().getHitFraction()) {
Collections.reverse(results);
}
return (List<PhysicsRayTestResult>) results;
return results;
}
/**