forked from teamnwah/openmw-tes3coop
Slightly tweak the spawn point heuristics
Fixes an issue with hlaalu building exits
This commit is contained in:
parent
d986b1a48b
commit
d840c7d5eb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue