ShipPilot

Inheritance:

Methods of ShipPilot:

__init__
def __init__(self, gravity=-32.1740, standableGround=0.707, hardLandingForce=16.0)

Undocumented function.

adjustWallBitMask
def adjustWallBitMask(self, oldMask, newMask)

Undocumented function.

avatarPhysicsIndicator
def avatarPhysicsIndicator(self, task)

Undocumented function.

deleteCollisions
def deleteCollisions(self)

Undocumented function.

disableAvatarControls
def disableAvatarControls(self)

Ignore the arrow keys, etc.

displayDebugInfo
def displayDebugInfo(self)

For debug use.

enableAvatarControls
def enableAvatarControls(self)

Activate the arrow keys, etc.

getVelocity
def getVelocity(self)

Undocumented function.

handleAvatarControls
def handleAvatarControls(self, task)

Check on the arrow keys and update the "avatar" (ship).

initializeCollisions
def initializeCollisions(self, collisionTraverser, cRootNodePath, bow, stern, starboard, port)

Set up the avatar collisions. All we do here is assign the traverser. All the ship specific stuff happens in setAvatar() and its helper functions.

setAvatar
def setAvatar(self, ship)

Undocumented function.

setAvatarPhysicsIndicator
def setAvatarPhysicsIndicator(self, indicator)

indicator is a NodePath

setCollisionsActive
def setCollisionsActive(self, active=1)

Undocumented function.

setFloorBitMask
def setFloorBitMask(self, bitMask)

Undocumented function.

setShip
def setShip(self, ship)

Undocumented function.

setTag
def setTag(self, key, value)

Undocumented function.

setupCollisions
def setupCollisions(self)

Undocumented function.

setupPhysics
def setupPhysics(self, shipNodePath)

Undocumented function.

setWalkSpeed
def setWalkSpeed(self, forward, jump, reverse, rotate)

Undocumented function.

setWallBitMask
def setWallBitMask(self, bitMask)

Undocumented function.

takedownPhysics
def takedownPhysics(self)

Undocumented function.