Fix for climb jank (#1803)

Player body was going to sleep, so now we spam WakeBody() at it.
This commit is contained in:
nuke
2020-08-19 20:21:15 -04:00
committed by GitHub
parent 45380c129b
commit 322e38b173
2 changed files with 8 additions and 8 deletions

View File

@@ -50,6 +50,8 @@ namespace Content.Shared.Physics
return;
}
ControlledComponent.WakeBody();
if ((ControlledComponent.Owner.Transform.WorldPosition - _lastKnownPosition).Length <= 0.05f)
{
_numTicksBlocked++;
@@ -61,7 +63,7 @@ namespace Content.Shared.Physics
_lastKnownPosition = ControlledComponent.Owner.Transform.WorldPosition;
if ((ControlledComponent.Owner.Transform.WorldPosition - _movingTo.Value).Length <= 0.05f)
if ((ControlledComponent.Owner.Transform.WorldPosition - _movingTo.Value).Length <= 0.1f)
{
_movingTo = null;
}