direct.controls.DevWalker

from direct.controls.DevWalker import DevWalker

DevWalker.py is for avatars.

A walker control such as this one provides:

  • creation of the collision nodes

  • handling the keyboard and mouse input for avatar movement

  • moving the avatar

it does not:

  • play sounds

  • play animations

although it does send messages that allow a listener to play sounds or animations based on walker events.

Inheritance diagram

Inheritance diagram of direct.controls.DevWalker

class DevWalker[source]

Bases: direct.showbase.DirectObject.DirectObject

__init__(self)[source]
addBlastForce(self, vector)[source]
debugPrint(self, message)[source]

for debugging

deleteCollisions(self)[source]
disableAvatarControls(self)[source]

Ignore the arrow keys, etc.

displayDebugInfo(self)[source]

For debug use.

enableAvatarControls(self)[source]

Activate the arrow keys, etc.

flushEventHandlers(self)[source]
getSpeeds(self)[source]
handleAvatarControls(self, task)[source]

Check on the arrow keys and update the avatar.

initializeCollisions(self, collisionTraverser, avatarNodePath, wallCollideMask, floorCollideMask, avatarRadius=1.4, floorOffset=1.0, reach=1.0)[source]
notify = <direct.directnotify.Notifier.Notifier object>
oneTimeCollide(self)[source]
placeOnFloor(self)[source]
runMultiplier = 4.0
setAirborneHeightFunc(self, getAirborneHeight)[source]
setAvatar(self, avatar)[source]
setCollisionsActive(self, active=1)[source]
setFloorBitMask(self, bitMask)[source]
setTag(self, key, value)[source]
setWalkSpeed(self, forward, jump, reverse, rotate)[source]
setWallBitMask(self, bitMask)[source]
slideName = 'slide-is-disabled'
wantDebugIndicator = 0