16 #include "physxManager.h" 39 return _box.isValid();
108 nassertv(!center.
is_nan());
121 nassertv(!extents.
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.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
void set_rot(LMatrix3f rot)
Sets the rotation of the box.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
bool is_nan() const
Returns true if any component of the vector is not-a-number, false otherwise.
bool is_nan() const
Returns true if any component of the matrix is not-a-number, false otherwise.
static NxMat34 mat4_to_nxMat34(const LMatrix4f &m)
Converts from LMatrix4f to NxMat34.
This is a 4-by-4 transform matrix.
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.
LMatrix3f get_rot() const
Return the rotation of the box.
bool is_nan() const
Returns true if any component of the matrix is not-a-number, false otherwise.
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.
This is a 3-by-3 transform matrix.
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.