00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __BULLET_CONVEX_POINT_CLOUD_SHAPE_H__
00016 #define __BULLET_CONVEX_POINT_CLOUD_SHAPE_H__
00017
00018 #include "pandabase.h"
00019
00020 #include "bullet_includes.h"
00021 #include "bulletShape.h"
00022
00023 #include "geom.h"
00024 #include "pta_LVecBase3.h"
00025
00026
00027
00028
00029
00030 class EXPCL_PANDABULLET BulletConvexPointCloudShape : public BulletShape {
00031
00032 PUBLISHED:
00033 BulletConvexPointCloudShape(const PTA_LVecBase3 &points, LVecBase3 scale=LVecBase3(1.));
00034 BulletConvexPointCloudShape(const Geom *geom, LVecBase3 scale=LVecBase3(1.));
00035 INLINE BulletConvexPointCloudShape(const BulletConvexPointCloudShape ©);
00036 INLINE void operator = (const BulletConvexPointCloudShape ©);
00037 INLINE ~BulletConvexPointCloudShape();
00038
00039 INLINE int get_num_points() const;
00040
00041 public:
00042 virtual btCollisionShape *ptr() const;
00043
00044 private:
00045 btConvexPointCloudShape *_shape;
00046
00047
00048 public:
00049 static TypeHandle get_class_type() {
00050 return _type_handle;
00051 }
00052 static void init_type() {
00053 BulletShape::init_type();
00054 register_type(_type_handle, "BulletConvexPointCloudShape",
00055 BulletShape::get_class_type());
00056 }
00057 virtual TypeHandle get_type() const {
00058 return get_class_type();
00059 }
00060 virtual TypeHandle force_init_type() {
00061 init_type();
00062 return get_class_type();
00063 }
00064
00065 private:
00066 static TypeHandle _type_handle;
00067 };
00068
00069 #include "bulletConvexPointCloudShape.I"
00070
00071 #endif // __BULLET_CONVEX_POINT_CLOUD_SHAPE_H__