# PhysicsWalker

from direct.controls.PhysicsWalker import PhysicsWalker

## Inheritance:

PhysicsWalker:

## Methods of PhysicsWalker:

__init__
addBlastForce
avatarPhysicsIndicator
deleteCollisions
determineHeight
disableAvatarControls
displayDebugInfo
doDeltaPos
enableAvatarControls
getCollisionsActive
getSpeeds
getVelocity
handleAvatarControls
initializeCollisions
oneTimeCollide
placeOnFloor
reset
setAirborneHeightFunc
setAvatar
setAvatarPhysicsIndicator
setCollisionsActive
setPriorParentVector
setupPhysics
setupRay
setupSphere
setWalkSpeed

__init__ def __init__(self, gravity=-32.1740, standableGround=0.707, hardLandingForce=16.0) Undocumented function.

addBlastForce def addBlastForce(self, vector) Undocumented function.

avatarPhysicsIndicator def avatarPhysicsIndicator(self, task) Undocumented function.

deleteCollisions def deleteCollisions(self) Undocumented function.

determineHeight def determineHeight(self) returns the height of the avatar above the ground. If there is no floor below the avatar, 0.0 is returned. aka get airborne height.

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

displayDebugInfo def displayDebugInfo(self) For debug use.

doDeltaPos def doDeltaPos(self) Undocumented function.

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

getCollisionsActive def getCollisionsActive(self) Undocumented function.

getSpeeds def getSpeeds(self) Undocumented function.

getVelocity def getVelocity(self) Undocumented function.

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

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

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.

placeOnFloor def placeOnFloor(self) Make a reasonable effort to place the avatar on the ground. For example, this is useful when switching away from the current walker.

reset def reset(self) Undocumented function.

setAirborneHeightFunc def setAirborneHeightFunc(self, getAirborneHeight) Undocumented function.

setAvatar def setAvatar(self, avatar) Undocumented function.

setAvatarPhysicsIndicator def setAvatarPhysicsIndicator(self, indicator) indicator is a NodePath

setCollisionsActive def setCollisionsActive(self, active=1) Undocumented function.

setPriorParentVector def setPriorParentVector(self) Undocumented function.

setupPhysics def setupPhysics(self, avatarNodePath) Undocumented function.

setupRay def setupRay(self, floorBitmask, floorOffset) Undocumented function.

setupSphere def setupSphere(self, bitmask, avatarRadius) Set up the collision sphere

setWalkSpeed def setWalkSpeed(self, forward, jump, reverse, rotate) Undocumented function.