Explorar el Código

Changed LinkedList for ArrayList in rayTests

NemesisMate hace 9 años
padre
commit
8a058c61f1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java

+ 2 - 2
jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java

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