64 triangle[0] = projectedCenter + tangentDir0 * radius + tangentDir1 * radius;
65 triangle[1] = projectedCenter + tangentDir0 * radius - tangentDir1 * radius;
66 triangle[2] = projectedCenter - tangentDir0 * radius - tangentDir1 * radius;
70 triangle[0] = projectedCenter - tangentDir0 * radius - tangentDir1 * radius;
71 triangle[1] = projectedCenter - tangentDir0 * radius + tangentDir1 * radius;
72 triangle[2] = projectedCenter + tangentDir0 * radius + tangentDir1 * radius;
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
void btPlaneSpace1(const T &n, T &p, T &q)
The btConcaveShape class provides an interface for non-moving (static) concave shapes.
virtual void processAllTriangles(btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
virtual void getAabb(const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
virtual void setLocalScaling(const btVector3 &scaling)
virtual ~btStaticPlaneShape()
virtual const btVector3 & getLocalScaling() const
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const
btStaticPlaneShape(const btVector3 &planeNormal, btScalar planeConstant)
The btTriangleCallback provides a callback for each overlapping triangle when calling processAllTrian...
virtual void processTriangle(btVector3 *triangle, int partId, int triangleIndex)=0
btVector3 can be used to represent 3D points and vectors.
btScalar length() const
Return the length of the vector.
btScalar dot(const btVector3 &v) const
Return the dot product.
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)