24 link(NxShape *shapePtr) {
26 _ptr = shapePtr->isBox();
27 _ptr->userData =
this;
33 actor->_shapes.add(
this);
42 _ptr->userData =
nullptr;
43 _error_type = ET_released;
46 actor->_shapes.remove(
this);
55 nassertv(_error_type == ET_ok);
56 _ptr->saveToDesc(shapeDesc._desc);
68 nassertv(_error_type == ET_ok);
81 nassertr(_error_type == ET_ok, LVector3f::zero());
LVector3f get_dimensions() const
Retrieves the dimensions of the box.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void save_to_desc(PhysxBoxShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
void set_dimensions(const LVector3f &dimensions)
Sets the box dimensions.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Actors are the main simulation objects.
Descriptor class for PhysxBoxShape.
void set_name(const char *name)
Sets a name string for this object.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.