Panda3D
|
def __init__ | ( | self, | |
gravity = -32.1740 , |
|||
standableGround = 0.707 , |
|||
hardLandingForce = 16.0 |
|||
) |
def addBlastForce | ( | self, | |
vector | |||
) |
def avatarPhysicsIndicator | ( | self, | |
task | |||
) |
def debugPrint | ( | self, | |
message | |||
) |
for debugging
def deleteCollisions | ( | self | ) |
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.
def disableAvatarControls | ( | self | ) |
Ignore the arrow keys, etc.
def displayDebugInfo | ( | self | ) |
For debug use.
def doDeltaPos | ( | self | ) |
def enableAvatarControls | ( | self | ) |
Activate the arrow keys, etc.
def flushEventHandlers | ( | self | ) |
def getCollisionsActive | ( | self | ) |
def getSpeeds | ( | self | ) |
def getVelocity | ( | self | ) |
def handleAvatarControls | ( | self, | |
task | |||
) |
Check on the arrow keys and update the avatar.
def initializeCollisions | ( | self, | |
collisionTraverser, | |||
avatarNodePath, | |||
wallBitmask, | |||
floorBitmask, | |||
avatarRadius = 1.4 , |
|||
floorOffset = 1.0 , |
|||
reach = 1.0 |
|||
) |
Set up the avatar collisions
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.
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.
def reset | ( | self | ) |
def setAirborneHeightFunc | ( | self, | |
getAirborneHeight | |||
) |
def setAvatar | ( | self, | |
avatar | |||
) |
def setAvatarPhysicsIndicator | ( | self, | |
indicator | |||
) |
indicator is a NodePath
def setCollisionsActive | ( | self, | |
active = 1 |
|||
) |
def setPriorParentVector | ( | self | ) |
def setupAvatarPhysicsIndicator | ( | self | ) |
def setupPhysics | ( | self, | |
avatarNodePath | |||
) |
def setupRay | ( | self, | |
floorBitmask, | |||
floorOffset | |||
) |
def setupSphere | ( | self, | |
bitmask, | |||
avatarRadius | |||
) |
Set up the collision sphere
def setWalkSpeed | ( | self, | |
forward, | |||
jump, | |||
reverse, | |||
rotate | |||
) |
tuple notify = DirectNotifyGlobal.directNotify.newCategory("PhysicsWalker") [static] |
int useHeightRay = 0 [static] |
int useLifter = 0 [static] |
tuple wantAvatarPhysicsIndicator = base.config.GetBool('want-avatar-physics-indicator', 0) [static] |
tuple wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0) [static] |