Skip to content

Commit 69d1faf

Browse files
committed
Remove vestigial torso movement code
1 parent 326ebfc commit 69d1faf

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

TABGVR/Patches/PlayerPatch.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,4 @@ public static void Start(global::Player __instance)
3131

3232
_playerManager.playerRoot.AddComponent<VRControls>();
3333
}
34-
35-
[HarmonyPatch(nameof(global::Player.Update))]
36-
[HarmonyPostfix]
37-
public static void Update(global::Player __instance)
38-
{
39-
if (!_playerManager.playerIsClient) return;
40-
41-
var rigidBody = _playerManager.player.Torso.GetComponent<Rigidbody>();
42-
43-
rigidBody?.MoveRotation(Quaternion.Euler(0, _rotationTarget.eulerAngles.y, 0));
44-
}
4534
}

0 commit comments

Comments
 (0)