Panda3D
|
A specialized kind of CollisionHandler that throws an event for each collision detected. More...
Public Member Functions | |
__init__ () | |
The default CollisionHandlerEvent will throw no events. More... | |
__init__ (const CollisionHandlerHighestEvent) | |
![]() | |
__init__ () | |
The default CollisionHandlerEvent will throw no events. More... | |
__init__ (const CollisionHandlerEvent) | |
addAgainPattern (str again_pattern) | |
Adds the pattern string that indicates how the event names are generated when a collision between two particular nodes is still detected. More... | |
addInPattern (str in_pattern) | |
Adds a pattern string to the list of events that will be generated in response to a collision. More... | |
addOutPattern (str out_pattern) | |
Adds the pattern string that indicates how the event names are generated when a collision between two particular nodes is no longer detected. More... | |
clear () | |
Empties the list of elements that all colliders are known to be colliding with. More... | |
clearAgainPatterns () | |
Removes all of the previously-added in patterns. More... | |
clearInPatterns () | |
Removes all of the previously-added in patterns. More... | |
clearOutPatterns () | |
Removes all of the previously-added in patterns. More... | |
flush () | |
Same as clear() except "out" events are thrown. More... | |
str | getAgainPattern (int n) |
Returns the nth pattern string that indicates how the event names are generated for each collision detected. More... | |
list | getAgainPatterns () |
str | getInPattern (int n) |
Returns the nth pattern string that indicates how the event names are generated for each collision detected. More... | |
list | getInPatterns () |
int | getNumAgainPatterns () |
Returns the number of in pattern strings that have been added. More... | |
int | getNumInPatterns () |
Returns the number of in pattern strings that have been added. More... | |
int | getNumOutPatterns () |
Returns the number of in pattern strings that have been added. More... | |
str | getOutPattern (int n) |
Returns the nth pattern string that indicates how the event names are generated for each collision detected. More... | |
list | getOutPatterns () |
setAgainPattern (str again_pattern) | |
This method is deprecated; it completely replaces all the in patterns that have previously been set with the indicated pattern. More... | |
setInPattern (str in_pattern) | |
This method is deprecated; it completely replaces all the in patterns that have previously been set with the indicated pattern. More... | |
setOutPattern (str out_pattern) | |
This method is deprecated; it completely replaces all the in patterns that have previously been set with the indicated pattern. More... | |
![]() | |
__init__ (const CollisionHandler) | |
![]() | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. More... | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. More... | |
![]() | |
int | getRefCount () |
Returns the current reference count. More... | |
ref () | |
Explicitly increments the reference count. More... | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
bool | unref () |
Explicitly decrements the reference count. More... | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
Additional Inherited Members | |
![]() | |
String | again_patterns [] |
Returns the nth pattern string that indicates how the event names are generated for each collision detected. More... | |
String | in_patterns [] |
Returns the nth pattern string that indicates how the event names are generated for each collision detected. More... | |
String | out_patterns [] |
Returns the nth pattern string that indicates how the event names are generated for each collision detected. More... | |
![]() | |
TypeHandle | type |
Returns the TypeHandle representing this object's type. More... | |
![]() | |
int | ref_count |
The current reference count. More... | |
A specialized kind of CollisionHandler that throws an event for each collision detected.
The event thrown may be based on the name of the moving object or the struck object, or both. The first parameter of the event will be a pointer to the CollisionEntry that triggered it.
__init__ | ( | ) |
The default CollisionHandlerEvent will throw no events.
Its pattern strings must first be set via a call to add_in_pattern() and/or add_out_pattern().
__init__ | ( | const | CollisionHandlerHighestEvent | ) |
|
static |