Panda3D
|
def __init__ | ( | self | ) |
def addBlastForce | ( | self, | |
vector | |||
) | [inherited] |
def debugPrint | ( | self, | |
message | |||
) | [inherited] |
for debugging
def deleteCollisions | ( | self | ) | [inherited] |
def disableAvatarControls | ( | self | ) | [inherited] |
Ignore the arrow keys, etc.
def displayDebugInfo | ( | self | ) | [inherited] |
For debug use.
def doDeltaPos | ( | self | ) | [inherited] |
def enableAvatarControls | ( | self | ) | [inherited] |
Activate the arrow keys, etc.
def flushEventHandlers | ( | self | ) | [inherited] |
def getAirborneHeight | ( | self | ) | [inherited] |
def getCollisionsActive | ( | self | ) | [inherited] |
def getGravity | ( | self, | |
gravity | |||
) | [inherited] |
def getIsAirborne | ( | self | ) | [inherited] |
def getSpeeds | ( | self | ) |
Reimplemented from GravityWalker.
def getVelocity | ( | self | ) | [inherited] |
def handleAvatarControls | ( | self, | |
task | |||
) |
Check on the arrow keys and update the avatar.
Reimplemented from GravityWalker.
def handleAvatarControls | ( | self, | |
task | |||
) |
Check on the arrow keys and update the avatar.
Reimplemented from GravityWalker.
def initializeCollisions | ( | self, | |
collisionTraverser, | |||
avatarNodePath, | |||
avatarRadius = 1.4 , |
|||
floorOffset = 1.0 , |
|||
reach = 1.0 |
|||
) | [inherited] |
floorOffset is how high the avatar can reach. I.e. if the avatar walks under a ledge that is <= floorOffset above the ground (a double floor situation), the avatar will step up on to the ledge (instantly). Set up the avatar collisions
def oneTimeCollide | ( | self | ) | [inherited] |
Makes one quick collision pass for the avatar, for instance as a one-time straighten-things-up operation after collisions have been disabled.
def placeOnFloor | ( | self | ) | [inherited] |
Make a reasonable effor to place the avatar on the ground. For example, this is useful when switching away from the current walker.
def reset | ( | self | ) | [inherited] |
def setAirborneHeightFunc | ( | self, | |
unused_parameter | |||
) | [inherited] |
def setAvatar | ( | self, | |
avatar | |||
) | [inherited] |
def setAvatarPhysicsIndicator | ( | self, | |
indicator | |||
) | [inherited] |
indicator is a NodePath
def setCollisionRayHeight | ( | self, | |
height | |||
) | [inherited] |
def setCollisionsActive | ( | self, | |
active = 1 |
|||
) | [inherited] |
def setFloorBitMask | ( | self, | |
bitMask | |||
) | [inherited] |
def setGravity | ( | self, | |
gravity | |||
) | [inherited] |
def setMayJump | ( | self, | |
task | |||
) | [inherited] |
This function's use is internal to this class (maybe I'll add the __ someday). Anyway, if you want to enable or disable jumping in a general way see the ControlManager (don't use this).
def setPriorParentVector | ( | self | ) | [inherited] |
def setTag | ( | self, | |
key, | |||
value | |||
) | [inherited] |
def setupEventSphere | ( | self, | |
bitmask, | |||
avatarRadius | |||
) | [inherited] |
Set up the collision sphere
def setupFloorSphere | ( | self, | |
bitmask, | |||
avatarRadius | |||
) | [inherited] |
Set up the collision sphere
def setupRay | ( | self, | |
bitmask, | |||
floorOffset, | |||
reach | |||
) | [inherited] |
def setupWallSphere | ( | self, | |
bitmask, | |||
avatarRadius | |||
) | [inherited] |
Set up the collision sphere
def setWalkSpeed | ( | self, | |
forward, | |||
jump, | |||
reverse, | |||
rotate | |||
) | [inherited] |
def setWallBitMask | ( | self, | |
bitMask | |||
) | [inherited] |
def startJumpDelay | ( | self, | |
delay | |||
) | [inherited] |
def swapFloorBitMask | ( | self, | |
oldMask, | |||
newMask | |||
) | [inherited] |
avatar [inherited] |
avatarControlForwardSpeed [inherited] |
avatarControlJumpForce [inherited] |
avatarControlReverseSpeed [inherited] |
avatarControlRotateSpeed [inherited] |
avatarNodePath [inherited] |
avatarRadius [inherited] |
cEventSphereNodePath [inherited] |
cFloorSphereNodePath [inherited] |
collisionsActive [inherited] |
controlsTask [inherited] |
cRayNodePath [inherited] |
cTrav [inherited] |
cWallSphereNodePath [inherited] |
tuple DiagonalFactor = math.sqrt(2.) [static, inherited] |
tuple earlyEventSphere = base.config.GetBool('early-event-sphere', 0) [static, inherited] |
Reimplemented in TwoDWalker.
event [inherited] |
falling [inherited] |
floorBitmask [inherited] |
getAirborneHeight [inherited] |
highMark [inherited] |
indicatorTask [inherited] |
Reimplemented from GravityWalker.
jumpDelayTask [inherited] |
lifter [inherited] |
mayJump [inherited] |
Reimplemented from GravityWalker.
Reimplemented from GravityWalker.
tuple notify = directNotify.newCategory("GravityWalker") [static, inherited] |
Reimplemented in TwoDWalker.
physVelocityIndicator [inherited] |
Reimplemented from GravityWalker.
pusher [inherited] |
pusherFloorhandler [inherited] |
Reimplemented from GravityWalker.
Reimplemented from GravityWalker.
Reimplemented from GravityWalker.
Reimplemented from GravityWalker.
wallBitmask [inherited] |
tuple wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0) [static, inherited] |
Reimplemented in TwoDWalker.
tuple wantFloorSphere = base.config.GetBool('want-floor-sphere', 0) [static, inherited] |
Reimplemented in TwoDWalker.