Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
NonPhysicsWalker Class Reference
Inheritance diagram for NonPhysicsWalker:
GhostWalker ObserverWalker SwimWalker

Public Member Functions

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

Public Attributes

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

Static Public Attributes

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

Protected Member Functions

 _calcSpeeds (self)
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self)

Member Function Documentation

◆ _calcSpeeds()

_calcSpeeds ( self)
protected

Reimplemented in SwimWalker.

◆ addBlastForce()

addBlastForce ( self,
vector )

◆ debugPrint()

debugPrint ( self,
message )
for debugging

◆ deleteCollisions()

deleteCollisions ( self)

Reimplemented in ObserverWalker.

◆ disableAvatarControls()

disableAvatarControls ( self)
Ignore the arrow keys, etc.

Reimplemented in ObserverWalker.

◆ displayDebugInfo()

displayDebugInfo ( self)
For debug use.

◆ doDeltaPos()

doDeltaPos ( self)

◆ enableAvatarControls()

enableAvatarControls ( self)
Activate the arrow keys, etc.

Reimplemented in ObserverWalker.

◆ flushEventHandlers()

flushEventHandlers ( self)

◆ getSpeeds()

getSpeeds ( self)

◆ getVelocity()

getVelocity ( self)

◆ handleAvatarControls()

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

◆ initializeCollisions()

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

Reimplemented in ObserverWalker.

◆ oneTimeCollide()

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()

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()

reset ( self)

◆ setAirborneHeightFunc()

setAirborneHeightFunc ( self,
getAirborneHeight )

◆ setAvatar()

setAvatar ( self,
avatar )

◆ setCollisionsActive()

setCollisionsActive ( self,
active = 1 )

Reimplemented in ObserverWalker.

◆ setFloorBitMask()

setFloorBitMask ( self,
bitMask )

◆ setTag()

setTag ( self,
key,
value )

◆ setWalkSpeed()

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

◆ setWallBitMask()

setWallBitMask ( self,
bitMask )

◆ swapFloorBitMask()

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

◆ handleAvatarControls

handleAvatarControls

◆ lifter

lifter

◆ notify

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

◆ pusher

pusher

◆ rotationSpeed

rotationSpeed

◆ slideName

str slideName = "slide-is-disabled"
static

◆ slideSpeed

slideSpeed

◆ speed

speed

◆ stopThisFrame

stopThisFrame

◆ vel

vel

◆ wantDebugIndicator

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

◆ worldVelocity

worldVelocity