Explorar el Código

Implemented intersectBoundingBox for LightProbe

Rémy Bouquet hace 10 años
padre
commit
e159c3918a
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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);
+    }