21 PhysxBox(
const LPoint3f ¢er,
const LVector3f &extents,
const LMatrix3f &rot) {
34 return _box.isValid();
43 nassertv(!m.is_nan());
90 nassertv(!center.is_nan());
101 nassertv(!extents.is_nan());
112 nassertv(!rot.is_nan());
LPoint3f get_center() const
Return center of the box.
void set_center(LPoint3f center)
Sets the center of the box.
void set_extents(LVector3f extents)
Sets the extents of the box.
Represents an oriented bounding box, as a center point, extents(radii) and a rotation.
static NxVec3 point3_to_nxVec3(const LPoint3f &p)
Converts from LPoint3f to NxVec3.
void set_rot(LMatrix3f rot)
Sets the rotation of the box.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static NxMat34 mat4_to_nxMat34(const LMatrix4f &m)
Converts from LMatrix4f to NxMat34.
static NxVec3 vec3_to_nxVec3(const LVector3f &v)
Converts from LVector3f to NxVec3.
static NxMat33 mat3_to_nxMat33(const LMatrix3f &m)
Converts from LMatrix3f to NxMat33.
static LVector3f nxVec3_to_vec3(const NxVec3 &v)
Converts from NxVec3 to LVector3f.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
LMatrix3f get_rot() const
Return the rotation of the box.
LVector3f get_extents() const
Returns the extents (radii) of the box.
static LPoint3f nxVec3_to_point3(const NxVec3 &p)
Converts from NxVec3 to LPoint3f.
bool is_valid() const
Returns TRUE if the box is valid.
static LMatrix3f nxMat33_to_mat3(const NxMat33 &m)
Converts from NxMat33 to LMatrix3f.
void rotate(const LMatrix4f &m, PhysxBox &obb) const
Recomputes the box after an arbitrary transform by a 4x4 matrix.
void set_empty()
Setups an empty box.