direct.controls.GravityWalker

from direct.controls.GravityWalker import GravityWalker

GravityWalker.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 inheritance7d3567c4d8 { 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"]; "GravityWalker" [URL="direct.controls.GravityWalker.html#direct.controls.GravityWalker.GravityWalker",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; "DirectObject" -> "GravityWalker" [arrowsize=0.75,style=""]; }
class GravityWalker(gravity=64.348, standableGround=0.707, hardLandingForce=16.0, legacyLifter=False)[source]

Bases: DirectObject

DiagonalFactor = 0.7071067811865476
earlyEventSphere = 0
notify = <direct.directnotify.Notifier.Notifier object>
wantDebugIndicator = 0
wantFloorSphere = 0