mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix z on collision
This commit is contained in:
parent
83d2cd8120
commit
c3fc66631f
@ -564,6 +564,7 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
|||||||
else:
|
else:
|
||||||
self.buoyancy.setVector(Vec3.zero())
|
self.buoyancy.setVector(Vec3.zero())
|
||||||
physObject.setPosition(Point3(physObject.getPosition().getX(), physObject.getPosition().getY(), 0.0))
|
physObject.setPosition(Point3(physObject.getPosition().getX(), physObject.getPosition().getY(), 0.0))
|
||||||
|
self.actorNode.updateTransform()
|
||||||
#self.buoyancy.setVector(Vec3(0, 0, -depth))
|
#self.buoyancy.setVector(Vec3(0, 0, -depth))
|
||||||
|
|
||||||
# get the button states:
|
# get the button states:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user