ship sphere init

This commit is contained in:
Dave Schuyler 2006-03-11 05:06:16 +00:00
parent 325e42d530
commit 2fb89f87cd

View File

@ -283,7 +283,7 @@ class ShipPilot2(PhysicsWalker):
def initializeCollisions(self, collisionTraverser, def initializeCollisions(self, collisionTraverser,
avatarRadius = 1.4, floorOffset = 1.0, reach = 1.0, avatarRadius = 1.4, floorOffset = 1.0, reach = 1.0,
width = 3.0, length = 5.0, height = 2.5): width = 30.0, length = 105.0, height = 45.0):
""" """
width is feet from port to starboard. width is feet from port to starboard.
length is feet from aft to bow. length is feet from aft to bow.
@ -297,8 +297,8 @@ class ShipPilot2(PhysicsWalker):
self.floorOffset = floorOffset self.floorOffset = floorOffset
self.reach = reach self.reach = reach
if self.useBowSternSpheres: if self.useBowSternSpheres:
self.frontSphereOffset = frontSphereOffset self.frontSphereOffset = length * 0.3
self.backSphereOffset = backSphereOffset self.backSphereOffset = -length * 0.7
self.width = width self.width = width
self.length = length self.length = length
self.height = height self.height = height