(4ddd494a4) Add a todo note.

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:32:43 +03:00
parent 82c735fcb9
commit 65019e8d19
2 changed files with 74 additions and 97 deletions
@@ -244,6 +244,7 @@ namespace Barotrauma
}
}
}
// TODO: could we get a closest door to the outside and target the flowing hull if no airlock is found?
// Huge preference for closer targets
float distance = Vector2.DistanceSquared(character.WorldPosition, hull.WorldPosition);
float distanceFactor = MathHelper.Lerp(1, 0.2f, MathUtils.InverseLerp(0, MathUtils.Pow(100000, 2), distance));