Browse Source

Implemented intersectBoundingBox for LightProbe

Rémy Bouquet 10 năm trước cách đây
mục cha
commit
e159c3918a
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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);
+    }