DistancePhasedNode

Inheritance:

Methods of DistancePhasedNode:

__del__
def __del__(self)

Undocumented function.

__disableCollisions
def __disableCollisions(self, cleanup=False)

Disables all collision geometry by stashing the geometry. If autoCleanup == True and we're not currently cleaning up, leave the exit event and collision sphere active for the largest(thus lowest) phase. This is so that we can still cleanup if the phase node exits the largest sphere.

__enableCollisions
def __enableCollisions(self, phase)

Turns on collisions for the spheres bounding this phase zone by unstashing their geometry. Enables the exit event for the larger and the enter event for the smaller. Handles the extreme(end) phases gracefully.

__getEnterEvent
def __getEnterEvent(self, phaseName)

Undocumented function.

__getExitEvent
def __getExitEvent(self, phaseName)

Undocumented function.

__handleEnterEvent
def __handleEnterEvent(self, phaseName, cEntry)

Undocumented function.

__handleExitEvent
def __handleExitEvent(self, phaseName, cEntry)

Undocumented function.

__init__
def __init__(self, name, phaseParamMap={}, autoCleanup=True, enterPrefix='enter', exitPrefix='exit', phaseCollideMask=BitMask32.allOn(), fromCollideNode=None)

Undocumented function.

__oneTimeCollide
def __oneTimeCollide(self)

Fire off a one-time collision traversal of the scene graph. This allows us to process our entire phasing process in one frame in the cases where we cross more than one phase border.

__repr__
def __repr__(self)

Undocumented function.

__str__
def __str__(self)

Undocumented function.

cleanup
def cleanup(self)

Disables all collisions. Ignores all owned event listeners. Unloads all unloaded phases.

def
def def__deallocateId

Reuse abandoned ids.

reset
def reset(self)

Unloads all loaded phases and puts the phase node in the startup state is if it had just been initialized.

setPhase
def setPhase(self, aPhase)

See PhasedObject.setPhase()

setPhaseCollideMask
def setPhaseCollideMask(self, mask)

Sets the intoCollideMasks for our collision spheres.