|
|
@ -1349,7 +1349,8 @@ namespace MWPhysics
|
|
|
|
else if (physicActor->getCollisionMode() && canMoveToWaterSurface(iter->first, waterlevel))
|
|
|
|
else if (physicActor->getCollisionMode() && canMoveToWaterSurface(iter->first, waterlevel))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const osg::Vec3f actorPosition = physicActor->getPosition();
|
|
|
|
const osg::Vec3f actorPosition = physicActor->getPosition();
|
|
|
|
physicActor->setPosition(osg::Vec3f(actorPosition.x(), actorPosition.y(), waterlevel));
|
|
|
|
physicActor->setPosition(osg::Vec3f(actorPosition.x(), actorPosition.y(), waterlevel));
|
|
|
|
|
|
|
|
waterCollision = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
physicActor->setCanWaterWalk(waterCollision);
|
|
|
|
physicActor->setCanWaterWalk(waterCollision);
|
|
|
|