15 #include "physxBoxController.h" 16 #include "physxManager.h" 25 void PhysxBoxController::
26 link(NxController *controllerPtr) {
28 nassertv(controllerPtr->getType() == NX_CONTROLLER_BOX);
31 _ptr = (NxBoxController *)controllerPtr;
35 scene->_controllers.add(
this);
39 actor->link(_ptr->getActor());
40 actor->link_controller(
this);
48 void PhysxBoxController::
56 _error_type = ET_released;
59 scene->_controllers.remove(
this);
70 nassertv(_error_type == ET_ok);
static const LVector3f & zero()
Returns a zero-length vector.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
A scene is a collection of bodies, constraints, and effectors which can interact. ...
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
static LVector3f nxVec3_to_vec3(const NxVec3 &v)
Converts from NxVec3 to LVector3f.
Actors are the main simulation objects.
LVector3f get_extents() const
Returns controller's extents.
TypeHandle is the identifier used to differentiate C++ class types.
void set_extents(const LVector3f &extents)
Sets controller's extents.