소스 검색

Implemented intersectBoundingBox for LightProbe

Rémy Bouquet 10 년 전
부모
커밋
e159c3918a
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      jme3-core/src/main/java/com/jme3/light/LightProbe.java

+ 5 - 0
jme3-core/src/main/java/com/jme3/light/LightProbe.java

@@ -253,6 +253,11 @@ public class LightProbe extends Light implements Savable {
     public String toString() {
         return "Light Probe : " + position ;
     }
+
+    @Override
+    public boolean intersectsSphere(BoundingSphere sphere, TempVars vars) {
+        return getBounds().intersectsSphere(sphere);
+    }