Panda3D
|
Static Public Attributes | |
notify = DirectNotifyGlobal.directNotify.newCategory("PhysicsWalker") | |
int | useHeightRay = 0 |
int | useLifter = 0 |
wantDebugIndicator = ConfigVariableBool('want-avatar-physics-indicator', False) | |
__init__ | ( | self, | |
gravity = -32.1740, | |||
standableGround = 0.707, | |||
hardLandingForce = 16.0 ) |
addBlastForce | ( | self, | |
vector ) |
avatarPhysicsIndicator | ( | self, | |
task ) |
debugPrint | ( | self, | |
message ) |
for debugging
deleteCollisions | ( | self | ) |
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 | ( | self | ) |
Ignore the arrow keys, etc.
displayDebugInfo | ( | self | ) |
For debug use.
doDeltaPos | ( | self | ) |
enableAvatarControls | ( | self | ) |
Activate the arrow keys, etc.
flushEventHandlers | ( | self | ) |
getCollisionsActive | ( | self | ) |
getSpeeds | ( | self | ) |
getVelocity | ( | self | ) |
handleAvatarControls | ( | self, | |
task ) |
Check on the arrow keys and update the avatar.
initializeCollisions | ( | self, | |
collisionTraverser, | |||
avatarNodePath, | |||
wallBitmask, | |||
floorBitmask, | |||
avatarRadius = 1.4, | |||
floorOffset = 1.0, | |||
reach = 1.0 ) |
Set up the avatar collisions
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 | ( | 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 | ( | self | ) |
setAirborneHeightFunc | ( | self, | |
getAirborneHeight ) |
setAvatar | ( | self, | |
avatar ) |
setAvatarPhysicsIndicator | ( | self, | |
indicator ) |
indicator is a NodePath
setCollisionsActive | ( | self, | |
active = 1 ) |
setPriorParentVector | ( | self | ) |
setupAvatarPhysicsIndicator | ( | self | ) |
setupPhysics | ( | self, | |
avatarNodePath ) |
setupRay | ( | self, | |
floorBitmask, | |||
floorOffset ) |
setupSphere | ( | self, | |
bitmask, | |||
avatarRadius ) |
Set up the collision sphere
setWalkSpeed | ( | self, | |
forward, | |||
jump, | |||
reverse, | |||
rotate ) |
acForce |
actorNode |
avatar |
avatarControlForwardSpeed |
avatarControlJumpForce |
avatarControlReverseSpeed |
avatarControlRotateSpeed |
avatarNodePath |
avatarPhysicsIndicator |
avatarRadius |
avatarViscosity |
collisionsActive |
cRay |
cRayBitMask |
cRayNodePath |
cRayQueue |
cSphere |
cSphereBitMask |
cSphereNodePath |
cTrav |
floorOffset |
getAirborneHeight |
gravity |
handleAvatarControls |
highMark |
isAirborne |
lifter |
needToDeltaPos |
|
static |
phys |
physContactIndicator |
physVelocityIndicator |
priorParent |
priorParentNp |
pusher |
reset |
|
static |
|
static |
|
static |