16#ifndef BT_RAYCAST_TRI_CALLBACK_H
17#define BT_RAYCAST_TRI_CALLBACK_H
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape...
The btTriangleCallback provides a callback for each overlapping triangle when calling processAllTrian...
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)
@ kF_UseSubSimplexConvexCastRaytest
SubSimplexConvexCastRaytest is the default, even if kF_None is set.
@ kF_DisableHeightfieldAccelerator
@ kF_UseGjkConvexCastRaytest
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
btVector3 can be used to represent 3D points and vectors.
The btBroadphaseProxy is the main class that can be used with the Bullet broadphases.