forked from teamnwah/openmw-tes3coop
Solid trace
This commit is contained in:
parent
16855291a7
commit
8ebae0b706
3 changed files with 2 additions and 6 deletions
|
@ -27,7 +27,7 @@ namespace MWWorld
|
|||
NifBullet::ManualBulletShapeLoader* shapeLoader = new NifBullet::ManualBulletShapeLoader();
|
||||
mEngine = new OEngine::Physic::PhysicEngine(shapeLoader);
|
||||
playerphysics->mEngine = mEngine;
|
||||
//playerphysics->ps.snappingImplemented = true;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1777,10 +1777,6 @@ void PmoveSingle (playerMove* const pmove)
|
|||
pm->ps.watertype = 0;
|
||||
pm->ps.waterlevel = WL_DRYLAND;
|
||||
|
||||
if(pml.walking)
|
||||
std::cout << "Walking\n";
|
||||
else
|
||||
std::cout << "Not Walking\n";
|
||||
//if ( pm->ps->stats[STAT_HEALTH] <= 0 )
|
||||
//pm->tracemask &= ~CONTENTS_BODY; // corpses can fly through bodies
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ const bool NewPhysicsTrace(NewPhysTraceResults* const out, const Ogre::Vector3&
|
|||
if (!TestPointAgainstAabb2(aabbMin, aabbMax, *(const btVector3* const)&(start) ) )
|
||||
{
|
||||
//We're solid
|
||||
out->startSolid = false;
|
||||
out->startSolid = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue