From dc02cb5d114b4df6f232ba66c2c18d075f289711 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 9 Sep 2004 00:33:37 +0000 Subject: [PATCH] moved collision sphere --- direct/src/controls/ShipPilot.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index fb8a511594..e8e0baf7bf 100755 --- a/direct/src/controls/ShipPilot.py +++ b/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