Panda3D
|
A helper structure for iterating over contact streams reported by PhysxContactPair. More...
#include "physxContactPoint.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
unsigned int | get_feature_index0 () const |
Retrieves the feature index. | |
unsigned int | get_feature_index1 () const |
Retrieves the feature index. | |
LVector3f | get_normal () const |
Retrieves the patch normal. | |
float | get_normal_force () const |
Retrieves the point normal force. | |
LPoint3f | get_point () const |
Returns the contact point position. | |
float | get_separation () const |
Return the separation for the contact point. | |
virtual TypeHandle | get_type () const |
void | set (NxContactStreamIterator it) |
Static Public Member Functions | |
static PhysxContactPoint | empty () |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
A helper structure for iterating over contact streams reported by PhysxContactPair.
Definition at line 31 of file physxContactPoint.h.
unsigned int PhysxContactPoint::get_feature_index0 | ( | ) | const |
Retrieves the feature index.
Definition at line 99 of file physxContactPoint.cxx.
unsigned int PhysxContactPoint::get_feature_index1 | ( | ) | const |
Retrieves the feature index.
Definition at line 110 of file physxContactPoint.cxx.
LVector3f PhysxContactPoint::get_normal | ( | ) | const |
Retrieves the patch normal.
Definition at line 66 of file physxContactPoint.cxx.
References PhysxManager::nxVec3_to_vec3().
float PhysxContactPoint::get_normal_force | ( | ) | const |
Retrieves the point normal force.
Definition at line 77 of file physxContactPoint.cxx.
LPoint3f PhysxContactPoint::get_point | ( | ) | const |
Returns the contact point position.
Definition at line 55 of file physxContactPoint.cxx.
References PhysxManager::nxVec3_to_point3().
float PhysxContactPoint::get_separation | ( | ) | const |
Return the separation for the contact point.
Definition at line 88 of file physxContactPoint.cxx.
static void PhysxContactPoint::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from TypedObject.
Definition at line 62 of file physxContactPoint.h.
References TypedReferenceCount::init_type().