47 triangleNormal = v10.cross(v20);
49 const btScalar dist = vert0.dot(triangleNormal);
55 if (dist_a * dist_b >=
btScalar(0.0))
66 const btScalar proj_length = dist_a - dist_b;
75 btScalar edge_tolerance = triangleNormal.length2();
87 if ((
btScalar)(cp0.dot(triangleNormal)) >= edge_tolerance)
93 if ((
btScalar)(cp1.dot(triangleNormal)) >= edge_tolerance)
98 if ((
btScalar)(cp2.dot(triangleNormal)) >= edge_tolerance)
102 triangleNormal.normalize();
141 #ifdef USE_SUBSIMPLEX_CONVEX_CAST
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a point
btScalar m_hitFraction
time of impact calculation
btConvexShape()
not supported on IBM SDK, until we fix the alignment of btVector3
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
btVector3
btVector3 can be used to represent 3D points and vectors. It has an un-used w component to suit 16-by...
virtual bool calcTimeOfImpact(const btTransform &fromA, const btTransform &toA, const btTransform &fromB, const btTransform &toB, CastResult &result)
virtual void processTriangle(btVector3 *triangle, int partId, int triangleIndex)
btTransform m_triangleToWorld
btTransform m_convexShapeTo
virtual btScalar reportHit(const btVector3 &hitNormalLocal, const btVector3 &hitPointLocal, btScalar hitFraction, int partId, int triangleIndex)=0
const btConvexShape * m_convexShape
btTransform m_convexShapeFrom
btScalar m_triangleCollisionMargin
btScalar m_allowedPenetration
btTriangleConvexcastCallback(const btConvexShape *convexShape, const btTransform &convexShapeFrom, const btTransform &convexShapeTo, const btTransform &triangleToWorld, const btScalar triangleCollisionMargin)
virtual void processTriangle(btVector3 *triangle, int partId, int triangleIndex)
btTriangleRaycastCallback(const btVector3 &from, const btVector3 &to, unsigned int flags=0)
virtual btScalar reportHit(const btVector3 &hitNormalLocal, btScalar hitFraction, int partId, int triangleIndex)=0
T distance(const T &a, const T &b)
btScalar m_allowedPenetration