Implemented KRTriangle3 class.

Implemented swept sphere - mesh intersection testing / sphereCast functionality. - Not yet fully tested or optimized.

--HG--
branch : nfb
This commit is contained in:
2014-02-13 00:36:54 -08:00
parent d05b6c434c
commit 877b4b9bb7
17 changed files with 634 additions and 100 deletions

View File

@@ -51,6 +51,8 @@ public:
bool lineCast(const KRVector3 &v0, const KRVector3 &v1, KRHitInfo &hitinfo, unsigned int layer_mask);
bool rayCast(const KRVector3 &v0, const KRVector3 &dir, KRHitInfo &hitinfo, unsigned int layer_mask);
bool sphereCast(const KRVector3 &v0, const KRVector3 &v1, float radius, KRHitInfo &hitinfo, unsigned int layer_mask);
private:
KRAABB m_bounds;