|
|
|
@ -1284,7 +1284,8 @@ namespace MWWorld
|
|
|
|
|
bool reached = (targetRot == 90.f && it->second) || targetRot == 0.f;
|
|
|
|
|
|
|
|
|
|
/// \todo should use convexSweepTest here
|
|
|
|
|
std::vector<std::string> collisions = mPhysics->getCollisions(it->first);
|
|
|
|
|
std::vector<std::string> collisions = mPhysics->getCollisions(it->first, OEngine::Physic::CollisionType_Actor
|
|
|
|
|
, OEngine::Physic::CollisionType_Actor);
|
|
|
|
|
for (std::vector<std::string>::iterator cit = collisions.begin(); cit != collisions.end(); ++cit)
|
|
|
|
|
{
|
|
|
|
|
MWWorld::Ptr ptr = getPtrViaHandle(*cit);
|
|
|
|
@ -1300,7 +1301,6 @@ namespace MWWorld
|
|
|
|
|
// we need to undo the rotation
|
|
|
|
|
localRotateObject(it->first, 0, 0, oldRot);
|
|
|
|
|
reached = false;
|
|
|
|
|
//break; //Removed in case multiple actors are touching
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|