Browse Source

moved collision sphere

Dave Schuyler 21 years ago
parent
commit
dc02cb5d11
1 changed files with 2 additions and 5 deletions
  1. 2 5
      direct/src/controls/ShipPilot.py

+ 2 - 5
direct/src/controls/ShipPilot.py

@@ -163,11 +163,8 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
         """
         # This is a sphere on the ground to detect barrier collisions
         self.avatarRadius = avatarRadius
-        centerHeight = avatarRadius
-        if self.useHeightRay:
-            centerHeight *= 2.0
-        self.cSphere = CollisionSphere(0.0, 0.0, centerHeight, avatarRadius)
-        cSphereNode = CollisionNode('PW.cSphereNode')
+        self.cSphere = CollisionSphere(0.0, 0.0, 0.0, avatarRadius)
+        cSphereNode = CollisionNode('SP.cSphereNode')
         cSphereNode.addSolid(self.cSphere)
         self.cSphereNodePath = self.avatarNodePath.attachNewNode(cSphereNode)
         self.cSphereBitMask = bitmask