Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DevWalker Class Reference
Inheritance diagram for DevWalker:

Public Member Functions

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

Public Attributes

 avatar
 
 avatarControlForwardSpeed
 
 avatarControlReverseSpeed
 
 avatarControlRotateSpeed
 
 avatarNodePath
 
 cTrav
 
 liftSpeed
 
 rotationSpeed
 
 slideSpeed
 
 speed
 
 task
 
 vel
 

Static Public Attributes

 notify = DirectNotifyGlobal.directNotify.newCategory("DevWalker")
 
 runMultiplier = ConfigVariableDouble('dev-run-multiplier', 4.0)
 
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)

◆ disableAvatarControls()

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

◆ displayDebugInfo()

def displayDebugInfo (   self)
For debug use.

◆ enableAvatarControls()

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

◆ flushEventHandlers()

def flushEventHandlers (   self)

◆ getSpeeds()

def getSpeeds (   self)

◆ handleAvatarControls()

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

◆ initializeCollisions()

def initializeCollisions (   self,
  collisionTraverser,
  avatarNodePath,
  wallCollideMask,
  floorCollideMask,
  avatarRadius = 1.4,
  floorOffset = 1.0,
  reach = 1.0 
)

◆ oneTimeCollide()

def oneTimeCollide (   self)

◆ placeOnFloor()

def placeOnFloor (   self)

◆ setAirborneHeightFunc()

def setAirborneHeightFunc (   self,
  getAirborneHeight 
)

◆ setAvatar()

def setAvatar (   self,
  avatar 
)

◆ setCollisionsActive()

def setCollisionsActive (   self,
  active = 1 
)

◆ setFloorBitMask()

def setFloorBitMask (   self,
  bitMask 
)

◆ setTag()

def setTag (   self,
  key,
  value 
)

◆ setWalkSpeed()

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

◆ setWallBitMask()

def setWallBitMask (   self,
  bitMask 
)

Member Data Documentation

◆ avatar

avatar

◆ avatarControlForwardSpeed

avatarControlForwardSpeed

◆ avatarControlReverseSpeed

avatarControlReverseSpeed

◆ avatarControlRotateSpeed

avatarControlRotateSpeed

◆ avatarNodePath

avatarNodePath

◆ cTrav

cTrav

◆ liftSpeed

liftSpeed

◆ notify

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

◆ rotationSpeed

rotationSpeed

◆ runMultiplier

runMultiplier = ConfigVariableDouble('dev-run-multiplier', 4.0)
static

◆ slideName

string slideName = "slide-is-disabled"
static

◆ slideSpeed

slideSpeed

◆ speed

speed

◆ task

task

◆ vel

vel

◆ wantDebugIndicator

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