GhostWalker.py 624 B

123456789101112131415161718192021222324252627
  1. """
  2. GhostWalker.py is for avatars.
  3. A walker control such as this one provides:
  4. - creation of the collision nodes
  5. - handling the keyboard and mouse input for avatar movement
  6. - moving the avatar
  7. it does not:
  8. - play sounds
  9. - play animations
  10. although it does send messages that allow a listener to play sounds or
  11. animations based on walker events.
  12. """
  13. from direct.directnotify import DirectNotifyGlobal
  14. from . import NonPhysicsWalker
  15. class GhostWalker(NonPhysicsWalker.NonPhysicsWalker):
  16. notify = DirectNotifyGlobal.directNotify.newCategory("GhostWalker")
  17. # Ghosts slide instead of jump:
  18. slideName = "jump"