16 #ifndef BT_CONVEX_POINT_CLOUD_SHAPE_H
17 #define BT_CONVEX_POINT_CLOUD_SHAPE_H
45 m_unscaledPoints = points;
54 m_unscaledPoints = points;
64 return m_unscaledPoints;
69 return m_unscaledPoints;
89 virtual const char*
getName()
const {
return "ConvexPointCloud"; }
@ CONVEX_POINT_CLOUD_SHAPE_PROXYTYPE
virtual void setLocalScaling(const btVector3 &scaling)
in case we receive negative scaling
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const
btConvexShape Interface
SIMD_FORCE_INLINE int getNumPoints() const
virtual bool isInside(const btVector3 &pt, btScalar tolerance) const
virtual const char * getName() const
SIMD_FORCE_INLINE btVector3 * getUnscaledPoints()
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const
SIMD_FORCE_INLINE btVector3 getScaledPoint(int index) const
virtual int getNumVertices() const
btConvexPointCloudShape()
void setPoints(btVector3 *points, int numPoints, bool computeAabb=true, const btVector3 &localScaling=btVector3(1.f, 1.f, 1.f))
virtual void getEdge(int i, btVector3 &pa, btVector3 &pb) const
virtual int getNumPlanes() const
virtual void getVertex(int i, btVector3 &vtx) const
virtual void getPlane(btVector3 &planeNormal, btVector3 &planeSupport, int i) const
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
virtual int getNumEdges() const
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
btVector3
btVector3 can be used to represent 3D points and vectors. It has an un-used w component to suit 16-by...
The btPolyhedralConvexAabbCachingShape adds aabb caching to the btPolyhedralConvexShape.