Panda3D
Public Member Functions | Static Public Member Functions | List of all members
PhysxContactPoint Class Reference

A helper structure for iterating over contact streams reported by PhysxContactPair. More...

#include "physxContactPoint.h"

Inheritance diagram for PhysxContactPoint:
TypedObject MemoryBase

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)
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)=default
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer. More...
 
const TypedObjectas_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...
 
TypedObjectoperator= (const TypedObject &copy)=default
 

Static Public Member Functions

static PhysxContactPoint empty ()
 
static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from TypedObject
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...
 

Additional Inherited Members

- Public Attributes inherited from TypedObject
 get_type
 

Detailed Description

A helper structure for iterating over contact streams reported by PhysxContactPair.

Definition at line 29 of file physxContactPoint.h.

Member Function Documentation

◆ get_feature_index0()

unsigned int PhysxContactPoint::get_feature_index0 ( ) const

Retrieves the feature index.

Definition at line 84 of file physxContactPoint.cxx.

◆ get_feature_index1()

unsigned int PhysxContactPoint::get_feature_index1 ( ) const

Retrieves the feature index.

Definition at line 93 of file physxContactPoint.cxx.

◆ get_normal()

LVector3f PhysxContactPoint::get_normal ( ) const

Retrieves the patch normal.

Definition at line 57 of file physxContactPoint.cxx.

References PhysxManager::nxVec3_to_vec3().

◆ get_normal_force()

float PhysxContactPoint::get_normal_force ( ) const

Retrieves the point normal force.

Definition at line 66 of file physxContactPoint.cxx.

◆ get_point()

LPoint3f PhysxContactPoint::get_point ( ) const

Returns the contact point position.

Definition at line 48 of file physxContactPoint.cxx.

References PhysxManager::nxVec3_to_point3().

◆ get_separation()

float PhysxContactPoint::get_separation ( ) const

Return the separation for the contact point.

Definition at line 75 of file physxContactPoint.cxx.


The documentation for this class was generated from the following files: