reduced ray length
This commit is contained in:
parent
2043f57dfa
commit
26d5b08b8e
|
|
@ -175,7 +175,7 @@ class GravityWalker(DirectObject.DirectObject):
|
|||
# a higher or lower value depending on whether you want an avatar
|
||||
# that is outside of the world to step up to the floor when they
|
||||
# get under valid floor:
|
||||
cRay = CollisionRay(0.0, 0.0, 400000.0, 0.0, 0.0, -1.0)
|
||||
cRay = CollisionRay(0.0, 0.0, 4000.0, 0.0, 0.0, -1.0)
|
||||
cRayNode = CollisionNode('GW.cRayNode')
|
||||
cRayNode.addSolid(cRay)
|
||||
self.cRayNodePath = self.avatarNodePath.attachNewNode(cRayNode)
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class NonPhysicsWalker(DirectObject.DirectObject):
|
|||
# a higher or lower value depending on whether you want an avatar
|
||||
# that is outside of the world to step up to the floor when they
|
||||
# get under valid floor:
|
||||
self.cRay = CollisionRay(0.0, 0.0, 400000.0, 0.0, 0.0, -1.0)
|
||||
self.cRay = CollisionRay(0.0, 0.0, 4000.0, 0.0, 0.0, -1.0)
|
||||
cRayNode = CollisionNode('NPW.cRayNode')
|
||||
cRayNode.addSolid(self.cRay)
|
||||
self.cRayNodePath = avatarNodePath.attachNewNode(cRayNode)
|
||||
|
|
|
|||
|
|
@ -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, 400000.0, 0.0, 0.0, -1.0)
|
||||
self.cRay = CollisionRay(0.0, 0.0, 4000.0, 0.0, 0.0, -1.0)
|
||||
cRayNode = CollisionNode('shadowPlacer')
|
||||
cRayNode.addSolid(self.cRay)
|
||||
self.cRayNodePath = NodePath(cRayNode)
|
||||
|
|
|
|||
Loading…
Reference in New Issue