mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-06 19:01:21 +03:00
Added bounding box collision generation (not done)
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@50 ea6a568a-9f4f-0410-981a-c910a81bb256
This commit is contained in:
parent
6277c7f17c
commit
17a002f712
2 changed files with 87 additions and 45 deletions
|
@ -49,7 +49,12 @@ btVector3 perpComponent (const btVector3& direction, const btVector3& normal)
|
|||
btManifoldArray manifoldArray;
|
||||
|
||||
// Callback used for collision detection sweep tests. It prevents self
|
||||
// collision and is used in calls to convexSweepTest().
|
||||
// collision and is used in calls to convexSweepTest(). TODO: It might
|
||||
// be enough to just set the filters on this. If we set the group and
|
||||
// mask so that we only collide with static objects, self collision
|
||||
// would never happen. The sweep test function should have had a
|
||||
// version where you only specify the filters - I might add that
|
||||
// myself.
|
||||
class ClosestNotMeConvexResultCallback : public btCollisionWorld::ClosestConvexResultCallback
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue