diff --git a/jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java b/jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java index cae59d8ef..c84308a4f 100644 --- a/jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java +++ b/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 results = new LinkedList(); + List results = new ArrayList(); 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 results = new LinkedList(); + List results = new ArrayList(); rayTestRaw(from, to, results); return results;