Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
15 #ifndef BT_SPHERE_MINKOWSKI_H
16 #define BT_SPHERE_MINKOWSKI_H
32 m_localScaling.setValue(1.0, 1.0, 1.0);
33 m_implicitShapeDimensions.setZero();
34 m_implicitShapeDimensions.setX(radius);
35 m_collisionMargin = radius;
42 virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(
const btVector3* vectors,
btVector3* supportVerticesOut,
int numVectors)
const;
48 btScalar getRadius()
const {
return m_implicitShapeDimensions.getX() * m_localScaling.getX(); }
52 m_implicitShapeDimensions.setX(radius);
57 virtual const char*
getName()
const {
return "SPHERE"; }
71 #endif //BT_SPHERE_MINKOWSKI_H
The btConvexInternalShape is an internal base class, shared by most convex shape implementations.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
virtual btScalar getMargin() const
virtual const char * getName() const
void setUnscaledRadius(btScalar radius)
virtual void setMargin(btScalar margin)
btSphereShape(btScalar radius)
#define BT_DECLARE_ALIGNED_ALLOCATOR()
The btSphereShape implements an implicit sphere, centered around a local origin with radius.
btVector3 can be used to represent 3D points and vectors.
#define ATTRIBUTE_ALIGNED16(a)
virtual void setMargin(btScalar margin)
btScalar getRadius() const