Differential D1739 Diff 5899 extern/bullet2/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.h
Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.h
| Show All 26 Lines | public: | ||||
| //input | //input | ||||
| btVector3 m_from; | btVector3 m_from; | ||||
| btVector3 m_to; | btVector3 m_to; | ||||
| //@BP Mod - allow backface filtering and unflipped normals | //@BP Mod - allow backface filtering and unflipped normals | ||||
| enum EFlags | enum EFlags | ||||
| { | { | ||||
| kF_None = 0, | kF_None = 0, | ||||
| kF_FilterBackfaces = 1 << 0, | kF_FilterBackfaces = 1 << 0, | ||||
| kF_KeepUnflippedNormal = 1 << 1, // Prevents returned face normal getting flipped when a ray hits a back-facing triangle | kF_KeepUnflippedNormal = 1 << 1, // Prevents returned face normal getting flipped when a ray hits a back-facing triangle | ||||
| ///SubSimplexConvexCastRaytest is the default, even if kF_None is set. | |||||
| kF_UseSubSimplexConvexCastRaytest = 1 << 2, // Uses an approximate but faster ray versus convex intersection algorithm | kF_UseSubSimplexConvexCastRaytest = 1 << 2, // Uses an approximate but faster ray versus convex intersection algorithm | ||||
| kF_UseGjkConvexCastRaytest = 1 << 3, | |||||
| kF_Terminator = 0xFFFFFFFF | kF_Terminator = 0xFFFFFFFF | ||||
| }; | }; | ||||
| unsigned int m_flags; | unsigned int m_flags; | ||||
| btScalar m_hitFraction; | btScalar m_hitFraction; | ||||
| btTriangleRaycastCallback(const btVector3& from,const btVector3& to, unsigned int flags=0); | btTriangleRaycastCallback(const btVector3& from,const btVector3& to, unsigned int flags=0); | ||||
| Show All 26 Lines | |||||