소스 검색

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

NemesisMate 9 년 전
부모
커밋
513eedaea1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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

@@ -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;
     }
 
     /**