15 #ifndef __BULLET_SHAPE_H__
16 #define __BULLET_SHAPE_H__
18 #include "pandabase.h"
20 #include "bullet_includes.h"
22 #include "typedReferenceCount.h"
23 #include "boundingSphere.h"
34 INLINE
bool is_polyhedral()
const;
35 INLINE
bool is_convex()
const;
36 INLINE
bool is_convex_2d()
const;
37 INLINE
bool is_concave()
const;
38 INLINE
bool is_infinite()
const;
39 INLINE
bool is_non_moving()
const;
40 INLINE
bool is_soft_body()
const;
42 void set_margin(PN_stdfloat margin);
43 const char *get_name()
const;
45 PN_stdfloat get_margin()
const;
50 virtual btCollisionShape *ptr()
const = 0;
53 void set_local_scale(
const LVecBase3 &scale);
60 static void init_type() {
61 TypedReferenceCount::init_type();
62 register_type(_type_handle,
"BulletShape",
63 TypedReferenceCount::get_class_type());
66 return get_class_type();
70 return get_class_type();
77 #include "bulletShape.I"
79 #endif // __BULLET_SHAPE_H__
This is the base class for all three-component vectors and points.
This defines a bounding sphere, consisting of a center and a radius.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
TypeHandle is the identifier used to differentiate C++ class types.