new ship controls!

This commit is contained in:
Zachary Pavlov 2007-01-28 04:49:38 +00:00
parent ff591b45e4
commit a47ddd8505
1 changed files with 3 additions and 2 deletions

View File

@ -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(