Changed LinkedList for ArrayList in rayTests

This commit is contained in:
NemesisMate 2016-05-20 10:00:08 +01:00
parent 3b0e0766c5
commit 8a058c61f1

View File

@ -788,7 +788,7 @@ public class PhysicsSpace {
* PhysicsRayTestResults ordered by it hitFraction (lower to higher) * PhysicsRayTestResults ordered by it hitFraction (lower to higher)
*/ */
public List rayTest(Vector3f from, Vector3f to) { public List rayTest(Vector3f from, Vector3f to) {
LinkedList<PhysicsRayTestResult> results = new LinkedList<PhysicsRayTestResult>(); List<PhysicsRayTestResult> results = new ArrayList<PhysicsRayTestResult>();
rayTest(from, to, results); rayTest(from, to, results);
return results; return results;
@ -799,7 +799,7 @@ public class PhysicsSpace {
* PhysicsRayTestResults without performing any sort operation * PhysicsRayTestResults without performing any sort operation
*/ */
public List rayTestRaw(Vector3f from, Vector3f to) { public List rayTestRaw(Vector3f from, Vector3f to) {
LinkedList<PhysicsRayTestResult> results = new LinkedList<PhysicsRayTestResult>(); List<PhysicsRayTestResult> results = new ArrayList<PhysicsRayTestResult>();
rayTestRaw(from, to, results); rayTestRaw(from, to, results);
return results; return results;