15 #ifndef BT_SPHERE_MINKOWSKI_H
16 #define BT_SPHERE_MINKOWSKI_H
32 m_implicitShapeDimensions.setX(radius);
33 m_collisionMargin = radius;
39 virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(
const btVector3* vectors,
btVector3* supportVerticesOut,
int numVectors)
const;
47 btScalar getRadius()
const {
return m_implicitShapeDimensions.getX() * m_localScaling.getX();}
51 m_implicitShapeDimensions.setX(radius);
56 virtual const char*
getName()
const {
return "SPHERE";}
73 #endif //BT_SPHERE_MINKOWSKI_H
The btConvexInternalShape is an internal base class, shared by most convex shape implementations.
The btSphereShape implements an implicit sphere, centered around a local origin with radius...
btSphereShape(btScalar radius)
virtual void setMargin(btScalar margin)
virtual void setMargin(btScalar margin)
btVector3 can be used to represent 3D points and vectors.
#define ATTRIBUTE_ALIGNED16(a)
virtual const char * getName() const
virtual btScalar getMargin() const
#define BT_DECLARE_ALIGNED_ALLOCATOR()
btScalar getRadius() const
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
void setUnscaledRadius(btScalar radius)