direct.controls.PhysicsWalker

from direct.controls.PhysicsWalker import PhysicsWalker

PhysicsWalker.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

digraph inheritancea6407c4c86 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DirectObject" [URL="direct.showbase.DirectObject.html#direct.showbase.DirectObject.DirectObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="This is the class that all Direct/SAL classes should inherit from"]; "PhysicsWalker" [URL="direct.controls.PhysicsWalker.html#direct.controls.PhysicsWalker.PhysicsWalker",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; "DirectObject" -> "PhysicsWalker" [arrowsize=0.75,style=""]; }
class PhysicsWalker(gravity=-32.174, standableGround=0.707, hardLandingForce=16.0)[source]

Bases: DirectObject

notify = <direct.directnotify.Notifier.Notifier object>
useHeightRay = 0
useLifter = 0
wantDebugIndicator = 0