Panda3D
|
Public Member Functions | |
def | __init__ |
def | __repr__ |
def | __str__ |
def | cleanup |
def | reset |
def | setPhase |
def | setPhaseCollideMask |
Public Attributes | |
autoCleanup | |
bufferParamList | |
bufferParamMap | |
cTrav | |
enterPrefix | |
exitPrefix | |
fromCollideNode | |
phaseCollideMask | |
phaseParamList | |
phaseParamMap | |
Static Public Attributes | |
tuple | notify = directNotify.newCategory("BufferedDistancePhasedObject") |
This class is similar to DistancePhasedNode except you can also specify a buffer distance for each phase. Upon entering that phase, its distance will be increased by the buffer amount. Conversely, the distance will be decremented by that amount, back to its original size, upon leaving. In this manner, you can avoid the problem of 'phase flicker' as someone repeatedly steps across a static phase border. You specify the buffer amount in the bufferParamMap parameter to __init__(). It has this format: bufferParamMap = {'alias':(distance, bufferAmount), ...}
def __init__ | ( | self, | |
name, | |||
bufferParamMap = {} , |
|||
autoCleanup = True , |
|||
enterPrefix = 'enter' , |
|||
exitPrefix = 'exit' , |
|||
phaseCollideMask = BitMask32.allOn() , |
|||
fromCollideNode = None |
|||
) |
Reimplemented from DistancePhasedNode.
def __repr__ | ( | self | ) |
Reimplemented from DistancePhasedNode.
def __str__ | ( | self | ) |
Reimplemented from DistancePhasedNode.
def cleanup | ( | self | ) | [inherited] |
Disables all collisions. Ignores all owned event listeners. Unloads all unloaded phases.
def reset | ( | self | ) | [inherited] |
Unloads all loaded phases and puts the phase node in the startup state is if it had just been initialized.
def setPhase | ( | self, | |
aPhase | |||
) |
see DistancePhasedNode.setPhase()
Reimplemented from DistancePhasedNode.
def setPhaseCollideMask | ( | self, | |
mask | |||
) | [inherited] |
Sets the intoCollideMasks for our collision spheres.
autoCleanup [inherited] |
cTrav [inherited] |
enterPrefix [inherited] |
exitPrefix [inherited] |
fromCollideNode [inherited] |
tuple notify = directNotify.newCategory("BufferedDistancePhasedObject") [static] |
Reimplemented from DistancePhasedNode.
phaseCollideMask [inherited] |
phaseParamList [inherited] |
phaseParamMap [inherited] |