29class EXPCL_PANDAPHYSX PhysxBox {
34 PhysxBox(
const LPoint3f ¢er,
const LVector3f &extents,
const LMatrix3f &rot);
37 void rotate(
const LMatrix4f &m, PhysxBox &obb)
const;
void set_extents(LVector3f extents)
Sets the extents of the box.
LPoint3f get_center() const
Return center of the box.
LVector3f get_extents() const
Returns the extents (radii) of the box.
LMatrix3f get_rot() const
Return the rotation of the box.
void set_empty()
Setups an empty box.
void rotate(const LMatrix4f &m, PhysxBox &obb) const
Recomputes the box after an arbitrary transform by a 4x4 matrix.
void set_center(LPoint3f center)
Sets the center of the box.
bool is_valid() const
Returns TRUE if the box is valid.
void set_rot(LMatrix3f rot)
Sets the rotation of the box.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.