mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Simple ships can now be deployed, steered, and docked by the player.
This commit is contained in:
parent
b82d8339f4
commit
22ecb56db2
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user