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

Public Member Functions

 deleteCollisions (self)
 
 disableAvatarControls (self)
 
 enableAvatarControls (self)
 
 initializeCollisions (self, collisionTraverser, avatarNodePath, avatarRadius=1.4, floorOffset=1.0, reach=1.0)
 
 oneTimeCollide (self)
 
 setCollisionsActive (self, active=1)
 
- Public Member Functions inherited from NonPhysicsWalker
 __init__ (self)
 
 addBlastForce (self, vector)
 
 debugPrint (self, message)
 
 displayDebugInfo (self)
 
 doDeltaPos (self)
 
 flushEventHandlers (self)
 
 getSpeeds (self)
 
 getVelocity (self)
 
 handleAvatarControls (self, task)
 
 placeOnFloor (self)
 
 reset (self)
 
 setAirborneHeightFunc (self, getAirborneHeight)
 
 setAvatar (self, avatar)
 
 setFloorBitMask (self, bitMask)
 
 setTag (self, key, value)
 
 setWalkSpeed (self, forward, jump, reverse, rotate)
 
 setWallBitMask (self, bitMask)
 
 swapFloorBitMask (self, oldMask, newMask)
 

Public Attributes

 avatarNodePath
 
 collisionsActive
 
 cSphere
 
 cSphereBitMask
 
 cSphereNodePath
 
 cTrav
 
 lifter
 
 pusher
 
- Public Attributes inherited from NonPhysicsWalker
 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("ObserverWalker")
 
str slideName = "jump"
 
- Static Public Attributes inherited from NonPhysicsWalker
 notify = DirectNotifyGlobal.directNotify.newCategory("NonPhysicsWalker")
 
str slideName = "slide-is-disabled"
 
 wantDebugIndicator = ConfigVariableBool('want-avatar-physics-indicator', False)
 

Additional Inherited Members

- Protected Member Functions inherited from NonPhysicsWalker
 _calcSpeeds (self)
 

Member Function Documentation

◆ deleteCollisions()

deleteCollisions ( self)

Reimplemented from NonPhysicsWalker.

◆ disableAvatarControls()

disableAvatarControls ( self)
Ignore the arrow keys, etc.

Reimplemented from NonPhysicsWalker.

◆ enableAvatarControls()

enableAvatarControls ( self)
Activate the arrow keys, etc.

Reimplemented from NonPhysicsWalker.

◆ initializeCollisions()

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

Reimplemented from NonPhysicsWalker.

◆ 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 from NonPhysicsWalker.

◆ setCollisionsActive()

setCollisionsActive ( self,
active = 1 )

Reimplemented from NonPhysicsWalker.

Member Data Documentation

◆ avatarNodePath

avatarNodePath

◆ collisionsActive

collisionsActive

◆ cSphere

cSphere

◆ cSphereBitMask

cSphereBitMask

◆ cSphereNodePath

cSphereNodePath

◆ cTrav

cTrav

◆ lifter

lifter

◆ notify

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

◆ pusher

pusher

◆ slideName

str slideName = "jump"
static