From a47ddd8505658f80200a9ed316fdfcc03a247403 Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Sun, 28 Jan 2007 04:49:38 +0000 Subject: [PATCH] new ship controls! --- direct/src/controls/ShipPilot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index d46defd53e..f02cd05207 100755 --- a/direct/src/controls/ShipPilot.py +++ b/direct/src/controls/ShipPilot.py @@ -104,7 +104,7 @@ class ShipPilot(PhysicsWalker): # Front sphere: sRadius = abs((self.portPos - self.starboardPos)[0] / 2.0) cBowSphere = CollisionSphere( - 0.0, self.bowPos[1], 0.0, sRadius) + 0.0, self.bowPos[1]+sRadius, 0.0, sRadius) cBowSphereNode = CollisionNode('SP.cBowSphereNode') cBowSphereNode.addSolid(cBowSphere) self.cBowSphereNodePath = self.ship.getInteractCollisionRoot().attachNewNode( @@ -113,10 +113,11 @@ class ShipPilot(PhysicsWalker): self.pusher.addCollider( self.cBowSphereNodePath, self.shipNodePath) + self.pusher.setHorizontal(True) # Back sphere: cSternSphere = CollisionSphere( - 0.0, self.sternPos[1], 0.0, sRadius) + 0.0, self.sternPos[1]-sRadius, 0.0, sRadius) cSternSphereNode = CollisionNode('SP.cSternSphereNode') cSternSphereNode.addSolid(cSternSphere) self.cSternSphereNodePath = self.ship.getInteractCollisionRoot().attachNewNode(