Panda3D
|
Public Member Functions | |
def | addBlastForce |
def | debugPrint |
def | deleteCollisions |
def | disableAvatarControls |
def | displayDebugInfo |
def | doDeltaPos |
def | enableAvatarControls |
def | flushEventHandlers |
def | getSpeeds |
def | getVelocity |
def | handleAvatarControls |
def | initializeCollisions |
def | oneTimeCollide |
def | placeOnFloor |
def | reset |
def | setAirborneHeightFunc |
def | setAvatar |
def | setCollisionsActive |
def | setFloorBitMask |
def | setTag |
def | setWalkSpeed |
def | setWallBitMask |
def | swapFloorBitMask |
Public Attributes | |
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 | |
tuple | notify = DirectNotifyGlobal.directNotify.newCategory("ObserverWalker") |
string | slideName = "jump" |
tuple | wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0) |
def addBlastForce | ( | self, | |
vector | |||
) | [inherited] |
def debugPrint | ( | self, | |
message | |||
) | [inherited] |
for debugging
def deleteCollisions | ( | self | ) |
Reimplemented from NonPhysicsWalker.
def disableAvatarControls | ( | self | ) |
Ignore the arrow keys, etc.
Reimplemented from NonPhysicsWalker.
def displayDebugInfo | ( | self | ) | [inherited] |
For debug use.
def doDeltaPos | ( | self | ) | [inherited] |
def enableAvatarControls | ( | self | ) |
Activate the arrow keys, etc.
Reimplemented from NonPhysicsWalker.
def flushEventHandlers | ( | self | ) | [inherited] |
def getSpeeds | ( | self | ) | [inherited] |
def getVelocity | ( | self | ) | [inherited] |
def handleAvatarControls | ( | self, | |
task | |||
) | [inherited] |
Check on the arrow keys and update the avatar.
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.
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.
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, | |
getAirborneHeight | |||
) | [inherited] |
def setAvatar | ( | self, | |
avatar | |||
) | [inherited] |
def setCollisionsActive | ( | self, | |
active = 1 |
|||
) |
Reimplemented from NonPhysicsWalker.
def setFloorBitMask | ( | self, | |
bitMask | |||
) | [inherited] |
def setTag | ( | self, | |
key, | |||
value | |||
) | [inherited] |
def setWalkSpeed | ( | self, | |
forward, | |||
jump, | |||
reverse, | |||
rotate | |||
) | [inherited] |
def setWallBitMask | ( | self, | |
bitMask | |||
) | [inherited] |
def swapFloorBitMask | ( | self, | |
oldMask, | |||
newMask | |||
) | [inherited] |
avatar [inherited] |
avatarControlForwardSpeed [inherited] |
avatarControlReverseSpeed [inherited] |
avatarControlRotateSpeed [inherited] |
Reimplemented from NonPhysicsWalker.
Reimplemented from NonPhysicsWalker.
cRay [inherited] |
cRayBitMask [inherited] |
cRayNodePath [inherited] |
Reimplemented from NonPhysicsWalker.
cSphereBitMask [inherited] |
Reimplemented from NonPhysicsWalker.
Reimplemented from NonPhysicsWalker.
getAirborneHeight [inherited] |
Reimplemented from NonPhysicsWalker.
tuple notify = DirectNotifyGlobal.directNotify.newCategory("ObserverWalker") [static] |
Reimplemented from NonPhysicsWalker.
Reimplemented from NonPhysicsWalker.
rotationSpeed [inherited] |
Reimplemented in SwimWalker.
string slideName = "jump" [static] |
Reimplemented from NonPhysicsWalker.
slideSpeed [inherited] |
Reimplemented in SwimWalker.
speed [inherited] |
Reimplemented in SwimWalker.
stopThisFrame [inherited] |
vel [inherited] |
tuple wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0) [static, inherited] |
worldVelocity [inherited] |