16#ifndef BT_OBB_BOX_2D_SHAPE_H
17#define BT_OBB_BOX_2D_SHAPE_H
41 btVector3 margin(getMargin(), getMargin(), getMargin());
48 return m_implicitShapeDimensions;
54 btVector3 margin(getMargin(), getMargin(), getMargin());
104 btVector3 margin(getMargin(), getMargin(), getMargin());
105 m_implicitShapeDimensions = (
boxHalfExtents * m_localScaling) - margin;
147 return &m_vertices[0];
152 return &m_normals[0];
159 getPlaneEquation(
plane, i);
const T & btMax(const T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
#define SIMD_FORCE_INLINE
The btBox2dShape is a box primitive around the origin, its sides axis aligned with length specified b...
virtual int getNumVertices() const
virtual void getPlane(btVector3 &planeNormal, btVector3 &planeSupport, int i) const
virtual int getNumEdges() const
btBox2dShape(const btVector3 &boxHalfExtents)
a btBox2dShape is a flat 2D box in the X-Y plane (Z extents are zero)
virtual void setLocalScaling(const btVector3 &scaling)
virtual void setMargin(btScalar collisionMargin)
const btVector3 * getVertices() const
virtual int getNumPreferredPenetrationDirections() const
int getVertexCount() const
const btVector3 & getHalfExtentsWithoutMargin() const
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
const btVector3 & getCentroid() const
virtual const char * getName() const
virtual bool isInside(const btVector3 &pt, btScalar tolerance) const
btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const
virtual void getEdge(int i, btVector3 &pa, btVector3 &pb) const
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual void getPlaneEquation(btVector4 &plane, int i) const
btVector3 getHalfExtentsWithMargin() const
virtual int getNumPlanes() const
virtual void getVertex(int i, btVector3 &vtx) const
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const
virtual void getPreferredPenetrationDirection(int index, btVector3 &penetrationVector) const
const btVector3 * getNormals() const
virtual void setMargin(btScalar margin)
virtual void setLocalScaling(const btVector3 &scaling)
The btPolyhedralConvexShape is an internal interface class for polyhedral convex shapes.
btVector3 can be used to represent 3D points and vectors.
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)