mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
ship sphere init
This commit is contained in:
parent
325e42d530
commit
2fb89f87cd
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user