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