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

Public Member Functions

def deleteCollisions (self)
 
def disableAvatarControls (self)
 
def enableAvatarControls (self)
 
def initializeCollisions (self, collisionTraverser, avatarNodePath, avatarRadius=1.4, floorOffset=1.0, reach=1.0)
 
def oneTimeCollide (self)
 
def setCollisionsActive (self, active=1)
 
- Public Member Functions inherited from NonPhysicsWalker
def __init__ (self)
 
def addBlastForce (self, vector)
 
def debugPrint (self, message)
 
def displayDebugInfo (self)
 
def doDeltaPos (self)
 
def flushEventHandlers (self)
 
def getSpeeds (self)
 
def getVelocity (self)
 
def handleAvatarControls (self, task)
 
def placeOnFloor (self)
 
def reset (self)
 
def setAirborneHeightFunc (self, getAirborneHeight)
 
def setAvatar (self, avatar)
 
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

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

Member Function Documentation

◆ deleteCollisions()

def deleteCollisions (   self)

Reimplemented from NonPhysicsWalker.

◆ disableAvatarControls()

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

Reimplemented from NonPhysicsWalker.

◆ enableAvatarControls()

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

Reimplemented from NonPhysicsWalker.

◆ initializeCollisions()

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

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

◆ setCollisionsActive()

def setCollisionsActive (   self,
  active = 1 
)

Reimplemented from NonPhysicsWalker.

Member Data Documentation

◆ avatarNodePath

avatarNodePath

◆ collisionsActive

collisionsActive

◆ cSphere

cSphere

◆ cSphereNodePath

cSphereNodePath

◆ cTrav

cTrav

◆ lifter

lifter

◆ notify

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

◆ pusher

pusher

◆ slideName

string slideName = "jump"
static