Simple ships can now be deployed, steered, and docked by the player.

This commit is contained in:
Justin Butler 2009-07-23 19:03:46 +00:00
parent b82d8339f4
commit 22ecb56db2

View File

@ -180,7 +180,7 @@ class ShipPilot(PhysicsWalker):
assert self.debugPrint("collisionsActive(active=%s)"%(active,)) assert self.debugPrint("collisionsActive(active=%s)"%(active,))
if self.collisionsActive != active: if self.collisionsActive != active:
self.collisionsActive = active self.collisionsActive = active
shipCollWall = self.shipNodePath.find("**/collision_hull;+s") shipCollWall = self.shipNodePath.getWallCollisions()
if active: if active:
self.cNodePath.node().setFromCollideMask(self.wallBitmask) self.cNodePath.node().setFromCollideMask(self.wallBitmask)
self.cNodePath.node().setIntoCollideMask(BitMask32.allOff()) self.cNodePath.node().setIntoCollideMask(BitMask32.allOff())