dont move player if attached

This commit is contained in:
JohnCorby 2023-02-10 20:01:29 -08:00
parent 0e2c40644f
commit 95361ade69
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ namespace QSB.EchoesOfTheEye.RaftSync.TransformSync;
public class RaftTransformSync : UnsectoredRigidbodySync, ILinkedNetworkBehaviour
{
private bool ShouldMovePlayer =>
!PlayerState.IsAttached() &&
(
Locator.GetPlayerController().GetGroundBody() == null ||
Locator.GetPlayerController().GetGroundBody() == AttachedRigidbody

View File

@ -124,6 +124,7 @@ public class ShipTransformSync : SectoredRigidbodySync
private bool ShouldMovePlayer =>
!PlayerState.IsAttached() &&
(
Locator.GetPlayerController().GetGroundBody() == null ||
Locator.GetPlayerController().GetGroundBody() == AttachedRigidbody