From bd73e2d5f1cd84380ca2318f70fafa91b56c55ef Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Wed, 29 Sep 2004 23:30:19 +0000 Subject: [PATCH] moved collision spheres down to avoid inadvertant collisions on deck --- direct/src/controls/ShipPilot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index 624572a4fe..5307d2f0d3 100755 --- a/direct/src/controls/ShipPilot.py +++ b/direct/src/controls/ShipPilot.py @@ -190,7 +190,7 @@ class ShipPilot(PhysicsWalker.PhysicsWalker): if 1: # Front sphere: - self.cBowSphere = CollisionSphere(0.0, 30.0, 0.0, avatarRadius) + self.cBowSphere = CollisionSphere(0.0, 35.0, -8.0, avatarRadius) cBowSphereNode = CollisionNode('SP.cBowSphereNode') cBowSphereNode.addSolid(self.cBowSphere) self.cBowSphereNodePath = self.avatarNodePath.attachNewNode(cBowSphereNode) @@ -202,7 +202,7 @@ class ShipPilot(PhysicsWalker.PhysicsWalker): self.pusher.addCollider(self.cBowSphereNodePath, self.avatarNodePath) # Back sphere: - self.cSternSphere = CollisionSphere(0.0, -20.0, 0.0, avatarRadius) + self.cSternSphere = CollisionSphere(0.0, -20.0, -8.0, avatarRadius) cSternSphereNode = CollisionNode('SP.cSternSphereNode') cSternSphereNode.addSolid(self.cSternSphere) self.cSternSphereNodePath = self.avatarNodePath.attachNewNode(cSternSphereNode)