00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXBOX_H
00016 #define PHYSXBOX_H
00017
00018 #include "pandabase.h"
00019 #include "luse.h"
00020
00021 #include "config_physx.h"
00022 #include "physx_includes.h"
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 class EXPCL_PANDAPHYSX PhysxBox {
00033
00034 PUBLISHED:
00035 INLINE PhysxBox();
00036 INLINE ~PhysxBox();
00037 PhysxBox(const LPoint3f ¢er, const LVector3f &extents, const LMatrix3f &rot);
00038
00039 bool is_valid() const;
00040 void rotate(const LMatrix4f &m, PhysxBox &obb) const;
00041 void set_empty();
00042
00043 LPoint3f get_center() const;
00044 LVector3f get_extents() const;
00045 LMatrix3f get_rot() const;
00046
00047 void set_center(LPoint3f center);
00048 void set_extents(LVector3f extents);
00049 void set_rot(LMatrix3f rot);
00050
00051 public:
00052 NxBox _box;
00053 };
00054
00055 #include "physxBox.I"
00056
00057 #endif // PHYSBOX_H