Functions

ozcollide/include/ozcollide/intr_tribox.h File Reference

Bunch of functions to test intersection between a triangle and a box. More...

Go to the source code of this file.

Functions

OZCOLLIDE_API bool testIntersectionTriBox (const Vec3f *pts, const Box &)
 Tests if a triangle defined by three points intersects with a Box.
OZCOLLIDE_API bool testIntersectionTriBox (const Polygon &, const Vec3f *pnts, const Box &)
 Tests if a polygon intersects with a Box.
OZCOLLIDE_API bool testIntersectionTriOBB (const Polygon &, const Vec3f *pnts, const OBB &)
 Tests if a polygon intersects with an OBB.
OZCOLLIDE_API bool magic_testIntersectionTriBox (const Vec3f *apkTri[3], const Box &rkBox)
 Triangle and box are stationary.
OZCOLLIDE_API bool magic_testIntersectionTriBox (const Vec3f *apkTri[3], const Box &rkBox, const Vec3f &rkBoxVel, float fTMax, float &rfTFirst, float &rfTLast)
 Triangle and box have constant linear velocity.
OZCOLLIDE_API bool testIntersectionTriBox (const Vec3f *tri_pts[3], const Vec3f &tri_normal, const Box &box, const Vec3f &box_vel, float &dist_travel, Vec3f &reaction)
 This method use the method as described by Watt/Policarpo[01].

Detailed Description

Bunch of functions to test intersection between a triangle and a box.

Supports static or dynamic entities.


Function Documentation

OZCOLLIDE_API bool magic_testIntersectionTriBox ( const Vec3f apkTri[3],
const Box rkBox 
)

Triangle and box are stationary.

OZCOLLIDE_API bool magic_testIntersectionTriBox ( const Vec3f apkTri[3],
const Box rkBox,
const Vec3f rkBoxVel,
float  fTMax,
float &  rfTFirst,
float &  rfTLast 
)

Triangle and box have constant linear velocity.

OZCOLLIDE_API bool testIntersectionTriBox ( const Vec3f pts,
const Box  
)

Tests if a triangle defined by three points intersects with a Box.

Parameters:
pts A pointer to 3 points
box The box to test with.
Returns:
true if intersection occurs, false otherwhise.
OZCOLLIDE_API bool testIntersectionTriBox ( const Polygon ,
const Vec3f pnts,
const Box  
)

Tests if a polygon intersects with a Box.

Parameters:
polygon The polygon.
pnts The 3D points used by the polygon.
box The box to test with.
Returns:
true if intersection occurs, false otherwhise.
OZCOLLIDE_API bool testIntersectionTriBox ( const Vec3f tri_pts[3],
const Vec3f tri_normal,
const Box box,
const Vec3f box_vel,
float &  dist_travel,
Vec3f reaction 
)

This method use the method as described by Watt/Policarpo[01].

OZCOLLIDE_API bool testIntersectionTriOBB ( const Polygon ,
const Vec3f pnts,
const OBB  
)

Tests if a polygon intersects with an OBB.

Parameters:
polygon The polygon.
pnts The 3D points used by the polygon.
box The box to test with.
Returns:
true if intersection occurs, false otherwhise.
 All Classes Files Functions Variables Enumerations Enumerator