15 #include "bulletShape.h"
16 #include "bullet_utils.h"
25 const char *BulletShape::
28 return ptr()->getName();
36 PN_stdfloat BulletShape::
39 return ptr()->getMargin();
48 set_margin(PN_stdfloat margin) {
50 ptr()->setMargin(margin);
59 get_local_scale()
const {
61 return btVector3_to_LVecBase3(ptr()->getLocalScaling());
73 ptr()->setLocalScaling(LVecBase3_to_btVector3(scale));
98 ptr()->getBoundingSphere(center, radius);
99 BoundingSphere bounds(btVector3_to_LPoint3(center), (PN_stdfloat)radius);
This is the base class for all three-component vectors and points.
This defines a bounding sphere, consisting of a center and a radius.
BoundingSphere get_shape_bounds() const
Returns the current bounds of this collision shape.
bool is_nan() const
Returns true if any component of the vector is not-a-number, false otherwise.
TypeHandle is the identifier used to differentiate C++ class types.