Slightly tweak the spawn point heuristics

Fixes an issue with hlaalu building exits
This commit is contained in:
scrawl 2016-03-11 22:29:50 +01:00
parent d986b1a48b
commit d840c7d5eb

View file

@ -221,7 +221,7 @@ namespace MWPhysics
collisionWorld->rayTest(from, to, resultCallback1);
if (resultCallback1.hasHit() &&
( (toOsg(resultCallback1.m_hitPointWorld) - tracer.mEndPos).length() > 30
( (toOsg(resultCallback1.m_hitPointWorld) - tracer.mEndPos).length() > 35
|| getSlope(tracer.mPlaneNormal) > sMaxSlope))
{
actor->setOnGround(getSlope(toOsg(resultCallback1.m_hitNormalWorld)) <= sMaxSlope);