16 #ifndef _SPU_PREFERRED_PENETRATION_DIRECTIONS_H
17 #define _SPU_PREFERRED_PENETRATION_DIRECTIONS_H
35 spu_printf(
"spuGetNumPreferredPenetrationDirections() - Unsupported bound type: %d.\n", shapeType);
53 penetrationVector = (vertices[1]-vertices[0]).
cross(vertices[2]-vertices[0]);
63 spu_printf(
"spuGetNumPreferredPenetrationDirections() - Unsupported bound type: %d.\n", shapeType);
70 #endif //_SPU_PREFERRED_PENETRATION_DIRECTIONS_H
int spuGetNumPreferredPenetrationDirections(int shapeType, void *shape)
btVector3 & normalize()
Normalize this vector x^2 + y^2 + z^2 = 1.
btVector3 can be used to represent 3D points and vectors.
void spuGetPreferredPenetrationDirection(int shapeType, void *shape, int index, btVector3 &penetrationVector)
static float4 cross(const float4 &a, const float4 &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...