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"; }
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
The btConvexInternalShape is an internal base class, shared by most convex shape implementations.
virtual void setMargin(btScalar margin)
The btSphereShape implements an implicit sphere, centered around a local origin with radius.
void setUnscaledRadius(btScalar radius)
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual btScalar getMargin() const
virtual void setMargin(btScalar margin)
virtual const char * getName() const
btSphereShape(btScalar radius)
btScalar getRadius() const
btVector3 can be used to represent 3D points and vectors.