Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DevWalker Class Reference
Inheritance diagram for DevWalker:

Public Member Functions

 __init__ (self)
 
 addBlastForce (self, vector)
 
 debugPrint (self, message)
 
 deleteCollisions (self)
 
 disableAvatarControls (self)
 
 displayDebugInfo (self)
 
 enableAvatarControls (self)
 
 flushEventHandlers (self)
 
 getSpeeds (self)
 
 handleAvatarControls (self, task)
 
 initializeCollisions (self, collisionTraverser, avatarNodePath, wallCollideMask, floorCollideMask, avatarRadius=1.4, floorOffset=1.0, reach=1.0)
 
 oneTimeCollide (self)
 
 placeOnFloor (self)
 
 setAirborneHeightFunc (self, getAirborneHeight)
 
 setAvatar (self, avatar)
 
 setCollisionsActive (self, active=1)
 
 setFloorBitMask (self, bitMask)
 
 setTag (self, key, value)
 
 setWalkSpeed (self, forward, jump, reverse, rotate)
 
 setWallBitMask (self, bitMask)
 

Public Attributes

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

Static Public Attributes

 notify = DirectNotifyGlobal.directNotify.newCategory("DevWalker")
 
 runMultiplier = ConfigVariableDouble('dev-run-multiplier', 4.0)
 
str slideName = "slide-is-disabled"
 
 wantDebugIndicator = ConfigVariableBool('want-avatar-physics-indicator', False)
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self)

Member Function Documentation

◆ addBlastForce()

addBlastForce ( self,
vector )

◆ debugPrint()

debugPrint ( self,
message )
for debugging

◆ deleteCollisions()

deleteCollisions ( self)

◆ disableAvatarControls()

disableAvatarControls ( self)
Ignore the arrow keys, etc.

◆ displayDebugInfo()

displayDebugInfo ( self)
For debug use.

◆ enableAvatarControls()

enableAvatarControls ( self)
Activate the arrow keys, etc.

◆ flushEventHandlers()

flushEventHandlers ( self)

◆ getSpeeds()

getSpeeds ( self)

◆ handleAvatarControls()

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

◆ initializeCollisions()

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

◆ oneTimeCollide()

oneTimeCollide ( self)

◆ placeOnFloor()

placeOnFloor ( self)

◆ setAirborneHeightFunc()

setAirborneHeightFunc ( self,
getAirborneHeight )

◆ setAvatar()

setAvatar ( self,
avatar )

◆ setCollisionsActive()

setCollisionsActive ( self,
active = 1 )

◆ setFloorBitMask()

setFloorBitMask ( self,
bitMask )

◆ setTag()

setTag ( self,
key,
value )

◆ setWalkSpeed()

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

◆ setWallBitMask()

setWallBitMask ( self,
bitMask )

Member Data Documentation

◆ avatar

avatar

◆ avatarControlForwardSpeed

avatarControlForwardSpeed

◆ avatarControlReverseSpeed

avatarControlReverseSpeed

◆ avatarControlRotateSpeed

avatarControlRotateSpeed

◆ avatarNodePath

avatarNodePath

◆ cTrav

cTrav

◆ handleAvatarControls

handleAvatarControls

◆ liftSpeed

liftSpeed

◆ notify

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

◆ rotationSpeed

rotationSpeed

◆ runMultiplier

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

◆ slideName

str slideName = "slide-is-disabled"
static

◆ slideSpeed

slideSpeed

◆ speed

speed

◆ task

task

◆ vel

vel

◆ wantDebugIndicator

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