Panda3D
Public Member Functions | Static Public Member Functions
PhysxContactPoint Class Reference

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

#include "physxContactPoint.h"

Inheritance diagram for PhysxContactPoint:
TypedObject MemoryBase

List of all members.

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.

Detailed Description

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

Definition at line 31 of file physxContactPoint.h.


Member Function Documentation

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.

Retrieves the patch normal.

Definition at line 66 of file physxContactPoint.cxx.

References PhysxManager::nxVec3_to_vec3().

Retrieves the point normal force.

Definition at line 77 of file physxContactPoint.cxx.

Returns the contact point position.

Definition at line 55 of file physxContactPoint.cxx.

References PhysxManager::nxVec3_to_point3().

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations