25 const char *BulletShape::
29 return ptr()->getName();
35 PN_stdfloat BulletShape::
39 return ptr()->getMargin();
46 set_margin(PN_stdfloat margin) {
49 ptr()->setMargin(margin);
55 LVecBase3 BulletShape::
56 get_local_scale()
const {
59 return btVector3_to_LVecBase3(ptr()->getLocalScaling());
68 nassertv(!scale.is_nan());
69 ptr()->setLocalScaling(LVecBase3_to_btVector3(scale));
76 set_local_scale(
const LVecBase3 &scale) {
86 get_shape_bounds()
const {
103 ptr()->getBoundingSphere(center, radius);
104 BoundingSphere bounds(btVector3_to_LPoint3(center), (PN_stdfloat)radius);
113 is_polyhedral()
const {
116 return ptr()->isPolyhedral();
126 return ptr()->isConvex();
133 is_convex_2d()
const {
136 return ptr()->isConvex2d();
146 return ptr()->isConcave();
153 is_infinite()
const {
156 return ptr()->isInfinite();
163 is_non_moving()
const {
166 return ptr()->isNonMoving();
173 is_soft_body()
const {
176 return ptr()->isSoftBody();
This defines a bounding sphere, consisting of a center and a radius.
Similar to MutexHolder, but for a light mutex.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
void do_set_local_scale(const LVecBase3 &scale)
Assumes the lock(bullet global lock) is held by the caller.