22 void PhysxBoxController::
23 link(NxController *controllerPtr) {
25 nassertv(controllerPtr->getType() == NX_CONTROLLER_BOX);
28 _ptr = (NxBoxController *)controllerPtr;
32 scene->_controllers.add(
this);
36 actor->link(_ptr->getActor());
37 actor->link_controller(
this);
43 void PhysxBoxController::
51 _error_type = ET_released;
54 scene->_controllers.remove(
this);
63 nassertv(_error_type == ET_ok);
73 nassertr(_error_type == ET_ok, LVector3f::zero());
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A scene is a collection of bodies, constraints, and effectors which can interact.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.