Panda3D
|
Box character controller. More...
#include "physxBoxController.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
LVector3f | get_extents () const |
Returns controller's extents. | |
virtual TypeHandle | get_type () const |
void | link (NxController *controllerPtr) |
NxController * | ptr () const |
void | set_extents (const LVector3f &extents) |
Sets controller's extents. | |
void | unlink () |
Static Public Member Functions | |
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. |
Box character controller.
Definition at line 28 of file physxBoxController.h.
LVector3f PhysxBoxController::get_extents | ( | ) | const |
Returns controller's extents.
Definition at line 80 of file physxBoxController.cxx.
References PhysxManager::nxVec3_to_vec3(), and LVector3f::zero().
static void PhysxBoxController::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 PhysxController.
Definition at line 52 of file physxBoxController.h.
References PhysxController::init_type().
void PhysxBoxController::set_extents | ( | const LVector3f & | extents | ) |
Sets controller's extents.
Definition at line 68 of file physxBoxController.cxx.
References PhysxManager::vec3_to_nxVec3().