Panda3D
|
A class used to hold information about a collision that has occurred. More...
#include <pandadoc.hpp>
Public Member Functions | |
__init__ (const OdeCollisionEntry) | |
OdeBody | getBody1 () |
Returns the first body in the collision. | |
OdeBody | getBody2 () |
Returns the second body in the collision. | |
OdeContactGeom | getContactGeom (int n) |
Returns the nth contact geom in the collision. | |
list | getContactGeoms () |
LPoint3f | getContactPoint (int n) |
Returns the nth contact point in the collision. | |
list | getContactPoints () |
OdeGeom | getGeom1 () |
Returns the first geom in the collision. | |
OdeGeom | getGeom2 () |
Returns the second geom in the collision. | |
int | getNumContacts () |
Returns the number of contacts in the collision. | |
bool | isEmpty () |
Returns true if the entry holds no contacts. | |
OdeContactGeom | operator[] (int n) |
![]() | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. | |
![]() | |
int | getRefCount () |
Returns the current reference count. | |
ref () | |
Explicitly increments the reference count. | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. | |
bool | unref () |
Explicitly decrements the reference count. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
Additional Inherited Members | |
![]() | |
TypeHandle | type |
Returns the TypeHandle representing this object's type. | |
![]() | |
int | ref_count |
The current reference count. | |
A class used to hold information about a collision that has occurred.
__init__ | ( | const OdeCollisionEntry | ) |
OdeBody getBody1 | ( | ) |
Returns the first body in the collision.
OdeBody getBody2 | ( | ) |
Returns the second body in the collision.
|
static |
OdeContactGeom getContactGeom | ( | int | n | ) |
Returns the nth contact geom in the collision.
list getContactGeoms | ( | ) |
LPoint3f getContactPoint | ( | int | n | ) |
Returns the nth contact point in the collision.
This does exactly the same as get_contact_geom(n).get_pos().
list getContactPoints | ( | ) |
OdeGeom getGeom1 | ( | ) |
Returns the first geom in the collision.
OdeGeom getGeom2 | ( | ) |
Returns the second geom in the collision.
int getNumContacts | ( | ) |
Returns the number of contacts in the collision.
bool isEmpty | ( | ) |
Returns true if the entry holds no contacts.
OdeContactGeom operator[] | ( | int | n | ) |