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. More... | |
unsigned int | get_feature_index1 () const |
Retrieves the feature index. More... | |
LVector3f | get_normal () const |
Retrieves the patch normal. More... | |
float | get_normal_force () const |
Retrieves the point normal force. More... | |
LPoint3f | get_point () const |
Returns the contact point position. More... | |
float | get_separation () const |
Return the separation for the contact point. More... | |
virtual TypeHandle | get_type () const |
void | set (NxContactStreamIterator it) |
![]() | |
TypedObject (const TypedObject ©) | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. More... | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. More... | |
void | operator= (const TypedObject ©) |
Static Public Member Functions | |
static PhysxContactPoint | empty () |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
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. More... | |
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.
References get_feature_index1().
Referenced by get_separation().
unsigned int PhysxContactPoint::get_feature_index1 | ( | ) | const |
Retrieves the feature index.
Definition at line 110 of file physxContactPoint.cxx.
Referenced by get_feature_index0().
LVector3f PhysxContactPoint::get_normal | ( | ) | const |
Retrieves the patch normal.
Definition at line 66 of file physxContactPoint.cxx.
References get_normal_force(), and PhysxManager::nxVec3_to_vec3().
Referenced by get_point().
float PhysxContactPoint::get_normal_force | ( | ) | const |
Retrieves the point normal force.
Definition at line 77 of file physxContactPoint.cxx.
References get_separation().
Referenced by get_normal().
LPoint3f PhysxContactPoint::get_point | ( | ) | const |
Returns the contact point position.
Definition at line 55 of file physxContactPoint.cxx.
References get_normal(), and PhysxManager::nxVec3_to_point3().
float PhysxContactPoint::get_separation | ( | ) | const |
Return the separation for the contact point.
Definition at line 88 of file physxContactPoint.cxx.
References get_feature_index0().
Referenced by get_normal_force().