Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
NonPhysicsWalker Class Reference
Inheritance diagram for NonPhysicsWalker:
GhostWalker ObserverWalker SwimWalker

Public Member Functions

def __init__
 
def addBlastForce
 
def debugPrint
 
def deleteCollisions
 
def disableAvatarControls
 
def displayDebugInfo
 
def doDeltaPos
 
def enableAvatarControls
 
def flushEventHandlers
 
def getSpeeds
 
def getVelocity
 
def handleAvatarControls
 
def initializeCollisions
 
def oneTimeCollide
 
def placeOnFloor
 
def reset
 
def setAirborneHeightFunc
 
def setAvatar
 
def setCollisionsActive
 
def setFloorBitMask
 
def setTag
 
def setWalkSpeed
 
def setWallBitMask
 
def swapFloorBitMask
 

Public Attributes

 avatar
 
 avatarControlForwardSpeed
 
 avatarControlReverseSpeed
 
 avatarControlRotateSpeed
 
 avatarNodePath
 
 collisionsActive
 
 cRay
 
 cRayBitMask
 
 cRayNodePath
 
 cSphere
 
 cSphereBitMask
 
 cSphereNodePath
 
 cTrav
 
 getAirborneHeight
 
 lifter
 
 pusher
 
 rotationSpeed
 
 slideSpeed
 
 speed
 
 stopThisFrame
 
 vel
 
 worldVelocity
 

Static Public Attributes

tuple notify = DirectNotifyGlobal.directNotify.newCategory("NonPhysicsWalker")
 
string slideName = "slide-is-disabled"
 
tuple wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0)
 

Constructor & Destructor Documentation

def __init__ (   self)

Member Function Documentation

def addBlastForce (   self,
  vector 
)
def debugPrint (   self,
  message 
)
for debugging
def deleteCollisions (   self)
def disableAvatarControls (   self)
Ignore the arrow keys, etc.
def displayDebugInfo (   self)
For debug use.
def doDeltaPos (   self)
def enableAvatarControls (   self)
Activate the arrow keys, etc.
def flushEventHandlers (   self)
def getSpeeds (   self)
def getVelocity (   self)
def handleAvatarControls (   self,
  task 
)
Check on the arrow keys and update the avatar.
def initializeCollisions (   self,
  collisionTraverser,
  avatarNodePath,
  avatarRadius = 1.4,
  floorOffset = 1.0,
  reach = 1.0 
)
Set up the avatar for collisions
def oneTimeCollide (   self)
Makes one quick collision pass for the avatar, for instance as
a one-time straighten-things-up operation after collisions
have been disabled.
def placeOnFloor (   self)
Make a reasonable effor to place the avatar on the ground.
For example, this is useful when switching away from the
current walker.
def reset (   self)
def setAirborneHeightFunc (   self,
  getAirborneHeight 
)
def setAvatar (   self,
  avatar 
)
def setCollisionsActive (   self,
  active = 1 
)
def setFloorBitMask (   self,
  bitMask 
)
def setTag (   self,
  key,
  value 
)
def setWalkSpeed (   self,
  forward,
  jump,
  reverse,
  rotate 
)
def setWallBitMask (   self,
  bitMask 
)
def swapFloorBitMask (   self,
  oldMask,
  newMask 
)

Member Data Documentation

avatar
avatarControlForwardSpeed
avatarControlReverseSpeed
avatarControlRotateSpeed
avatarNodePath
collisionsActive
cRay
cRayBitMask
cRayNodePath
cSphere
cSphereBitMask
cSphereNodePath
cTrav
getAirborneHeight
lifter
tuple notify = DirectNotifyGlobal.directNotify.newCategory("NonPhysicsWalker")
static
pusher
rotationSpeed
string slideName = "slide-is-disabled"
static
slideSpeed
speed
stopThisFrame
vel
tuple wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0)
static
worldVelocity