14 #ifndef __BULLET_SHAPE_H__ 15 #define __BULLET_SHAPE_H__ 34 bool is_polyhedral()
const;
35 bool is_convex()
const;
36 bool is_convex_2d()
const;
37 bool is_concave()
const;
38 bool is_infinite()
const;
39 bool is_non_moving()
const;
40 bool is_soft_body()
const;
42 void set_margin(PN_stdfloat margin);
43 const char *get_name()
const;
45 PN_stdfloat get_margin()
const;
49 MAKE_PROPERTY(polyhedral, is_polyhedral);
50 MAKE_PROPERTY(convex, is_convex);
51 MAKE_PROPERTY(convex_2d, is_convex_2d);
52 MAKE_PROPERTY(concave, is_concave);
53 MAKE_PROPERTY(infinite, is_infinite);
54 MAKE_PROPERTY(non_moving, is_non_moving);
55 MAKE_PROPERTY(soft_body, is_soft_body);
56 MAKE_PROPERTY(margin, get_margin, set_margin);
57 MAKE_PROPERTY(name, get_name);
58 MAKE_PROPERTY(shape_bounds, get_shape_bounds);
61 virtual btCollisionShape *ptr()
const = 0;
62 LVecBase3 get_local_scale()
const;
63 void set_local_scale(
const LVecBase3 &scale);
64 void do_set_local_scale(
const LVecBase3 &scale);
70 static void init_type() {
71 TypedWritableReferenceCount::init_type();
73 TypedWritableReferenceCount::get_class_type());
76 return get_class_type();
80 return get_class_type();
89 #endif // __BULLET_SHAPE_H__ This defines a bounding sphere, consisting of a center and a radius.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
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.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
TypeHandle is the identifier used to differentiate C++ class types.