Explorar el Código

fix z on collision

Dave Schuyler hace 21 años
padre
commit
c3fc66631f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      direct/src/controls/ShipPilot.py

+ 1 - 0
direct/src/controls/ShipPilot.py

@@ -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: