Panda3D
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__ (self)
 
def addBlastForce (self, vector)
 
def debugPrint (self, message)
 
def deleteCollisions (self)
 
def disableAvatarControls (self)
 
def displayDebugInfo (self)
 
def doDeltaPos (self)
 
def enableAvatarControls (self)
 
def flushEventHandlers (self)
 
def getSpeeds (self)
 
def getVelocity (self)
 
def handleAvatarControls (self, task)
 
def initializeCollisions (self, collisionTraverser, avatarNodePath, avatarRadius=1.4, floorOffset=1.0, reach=1.0)
 
def oneTimeCollide (self)
 
def placeOnFloor (self)
 
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)
 

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

 notify = DirectNotifyGlobal.directNotify.newCategory("NonPhysicsWalker")
 
string slideName = "slide-is-disabled"
 
 wantDebugIndicator = ConfigVariableBool('want-avatar-physics-indicator', False)
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ addBlastForce()

def addBlastForce (   self,
  vector 
)

◆ debugPrint()

def debugPrint (   self,
  message 
)
for debugging

◆ deleteCollisions()

def deleteCollisions (   self)

Reimplemented in ObserverWalker.

◆ disableAvatarControls()

def disableAvatarControls (   self)
Ignore the arrow keys, etc.

Reimplemented in ObserverWalker.

◆ displayDebugInfo()

def displayDebugInfo (   self)
For debug use.

◆ doDeltaPos()

def doDeltaPos (   self)

◆ enableAvatarControls()

def enableAvatarControls (   self)
Activate the arrow keys, etc.

Reimplemented in ObserverWalker.

◆ flushEventHandlers()

def flushEventHandlers (   self)

◆ getSpeeds()

def getSpeeds (   self)

◆ getVelocity()

def getVelocity (   self)

◆ handleAvatarControls()

def handleAvatarControls (   self,
  task 
)
Check on the arrow keys and update the avatar.

◆ initializeCollisions()

def initializeCollisions (   self,
  collisionTraverser,
  avatarNodePath,
  avatarRadius = 1.4,
  floorOffset = 1.0,
  reach = 1.0 
)
Set up the avatar for collisions

Reimplemented in ObserverWalker.

◆ oneTimeCollide()

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.

Reimplemented in ObserverWalker.

◆ placeOnFloor()

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.

◆ reset()

def reset (   self)

◆ setAirborneHeightFunc()

def setAirborneHeightFunc (   self,
  getAirborneHeight 
)

◆ setAvatar()

def setAvatar (   self,
  avatar 
)

◆ setCollisionsActive()

def setCollisionsActive (   self,
  active = 1 
)

Reimplemented in ObserverWalker.

◆ setFloorBitMask()

def setFloorBitMask (   self,
  bitMask 
)

◆ setTag()

def setTag (   self,
  key,
  value 
)

◆ setWalkSpeed()

def setWalkSpeed (   self,
  forward,
  jump,
  reverse,
  rotate 
)

◆ setWallBitMask()

def setWallBitMask (   self,
  bitMask 
)

◆ swapFloorBitMask()

def swapFloorBitMask (   self,
  oldMask,
  newMask 
)

Member Data Documentation

◆ avatar

avatar

◆ avatarControlForwardSpeed

avatarControlForwardSpeed

◆ avatarControlReverseSpeed

avatarControlReverseSpeed

◆ avatarControlRotateSpeed

avatarControlRotateSpeed

◆ avatarNodePath

avatarNodePath

◆ collisionsActive

collisionsActive

◆ cRay

cRay

◆ cRayBitMask

cRayBitMask

◆ cRayNodePath

cRayNodePath

◆ cSphere

cSphere

◆ cSphereBitMask

cSphereBitMask

◆ cSphereNodePath

cSphereNodePath

◆ cTrav

cTrav

◆ getAirborneHeight

getAirborneHeight

◆ lifter

lifter

◆ notify

notify = DirectNotifyGlobal.directNotify.newCategory("NonPhysicsWalker")
static

◆ pusher

pusher

◆ rotationSpeed

rotationSpeed

◆ slideName

string slideName = "slide-is-disabled"
static

◆ slideSpeed

slideSpeed

◆ speed

speed

◆ stopThisFrame

stopThisFrame

◆ vel

vel

◆ wantDebugIndicator

wantDebugIndicator = ConfigVariableBool('want-avatar-physics-indicator', False)
static

◆ worldVelocity

worldVelocity