Browse Source

reduced ray length

Dave Schuyler 21 years ago
parent
commit
35f04984c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/ShadowPlacer.py

+ 1 - 1
direct/src/showbase/ShadowPlacer.py

@@ -52,7 +52,7 @@ class ShadowPlacer(DirectObject.DirectObject):
         floorOffset = 0.025
         # Set up the collison ray
         # This is a ray cast down to detect floor polygons
-        self.cRay = CollisionRay(0.0, 0.0, 4000.0, 0.0, 0.0, -1.0)
+        self.cRay = CollisionRay(0.0, 0.0, CollisionHandlerRayStart, 0.0, 0.0, -1.0)
         cRayNode = CollisionNode('shadowPlacer')
         cRayNode.addSolid(self.cRay)
         self.cRayNodePath = NodePath(cRayNode)