Browse Source

added want-fluid-pusher

Darren Ranalli 18 years ago
parent
commit
a915788f83
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/controls/GravityWalker.py

+ 4 - 1
direct/src/controls/GravityWalker.py

@@ -215,7 +215,10 @@ class GravityWalker(DirectObject.DirectObject):
         cSphereNode.setIntoCollideMask(BitMask32.allOff())
         cSphereNode.setIntoCollideMask(BitMask32.allOff())
 
 
         # set up collision mechanism
         # set up collision mechanism
-        handler = CollisionHandlerPusher()
+        if config.GetBool('want-fluid-pusher', 0):
+            handler = CollisionHandlerFluidPusher()
+        else:
+            handler = CollisionHandlerPusher()
         #handler.setInPattern("pusher_enter%in")
         #handler.setInPattern("pusher_enter%in")
         #handler.setOutPattern("pusher_exit%in")
         #handler.setOutPattern("pusher_exit%in")