From 8a058c61f14a92e2e426f295afbf6e28aa4c5637 Mon Sep 17 00:00:00 2001 From: NemesisMate Date: Fri, 20 May 2016 10:00:08 +0100 Subject: [PATCH] Changed LinkedList for ArrayList in rayTests --- jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;