Inherits PhysicsWalker::PhysicsWalker.
List of all members.
Constructor & Destructor Documentation
def __init__ |
( |
|
self, |
|
|
|
gravity = -32.1740 , |
|
|
|
standableGround = 0.707 , |
|
|
|
hardLandingForce = 16.0 |
|
) |
| |
Member Function Documentation
def addBlastForce |
( |
|
self, |
|
|
|
vector |
|
) |
| |
def avatarPhysicsIndicator |
( |
|
self, |
|
|
|
task |
|
) |
| |
def debugPrint |
( |
|
self, |
|
|
|
message |
|
) |
| |
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 | ) |
|
def enableAvatarControls |
( |
|
self | ) |
|
Activate the arrow keys, etc.
def getCollisionsActive |
( |
|
self | ) |
|
def handleAvatarControls |
( |
|
self, |
|
|
|
task |
|
) |
| |
Check on the arrow keys and update the avatar.
def initializeCollisions |
( |
|
self, |
|
|
|
collisionTraverser, |
|
|
|
avatarRadius = 1.4 , |
|
|
|
floorOffset = 1.0 , |
|
|
|
reach = 1.0 , |
|
|
|
width = 30.0 , |
|
|
|
length = 105.0 , |
|
|
|
height = 45.0 |
|
) |
| |
width is feet from port to starboard.
length is feet from aft to bow.
height is feet from bildge to deck (i.e. not including mast height).
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.
Make a reasonable effort to place the avatar on the ground.
For example, this is useful when switching away from the
current walker.
def setAirborneHeightFunc |
( |
|
self, |
|
|
|
getAirborneHeight |
|
) |
| |
def setAvatar |
( |
|
self, |
|
|
|
ship |
|
) |
| |
def setAvatarPhysicsIndicator |
( |
|
self, |
|
|
|
indicator |
|
) |
| |
def setCollisionsActive |
( |
|
self, |
|
|
|
active = 1 |
|
) |
| |
def setFloorBitMask |
( |
|
self, |
|
|
|
bitMask |
|
) |
| |
def setPriorParentVector |
( |
|
self | ) |
|
def setTag |
( |
|
self, |
|
|
|
key, |
|
|
|
value |
|
) |
| |
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 |
|
) |
| |
def setWallBitMask |
( |
|
self, |
|
|
|
bitMask |
|
) |
| |
def takedownPhysics |
( |
|
self | ) |
|
Member Data Documentation
tuple notify = directNotify.newCategory("PhysicsWalker") [static] |
Initial value:base.config.GetBool(
'want-avatar-physics-indicator', 0)