Skip to content

Commit

Permalink
Hotfix for double math and fix defaults restore bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Happyrobot33 committed Sep 18, 2024
1 parent d81ffda commit 4304cd7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ private void MainFlightTick(float fixedDeltaTime)

//if (Vector3.Angle(LHRot * Vector3.right, RHRot * Vector3.right) > 90)
handsOpposite = (
Vector3.Distance(LocalPlayer.GetBonePosition(LeftHandBone), LocalPlayer.GetBonePosition(RightHandBone)) > (armspan / 3.3 * 2) + shoulderDistance
Vector3.Distance(LocalPlayer.GetBonePosition(LeftHandBone), LocalPlayer.GetBonePosition(RightHandBone)) > (armspan / 3.3f * 2) + shoulderDistance
);

if (!isFlapping)
Expand Down Expand Up @@ -918,7 +918,7 @@ public void InitializeDefaults()
defaultsStore.SetValue((DataToken)nameof(bankingTurns), bankingTurns);
defaultsStore.SetValue((DataToken)nameof(glideAngleOffset), glideAngleOffset);
defaultsStore.SetValue((DataToken)nameof(useAvatarScale), useAvatarScale);
defaultsStore.SetValue((DataToken)nameof(fallToGlideActivationDelay), weight);
defaultsStore.SetValue((DataToken)nameof(fallToGlideActivationDelay), fallToGlideActivationDelay);
Logger.Log(string.Format("Defaults initialized ({0} values).", defaultsStore.Count), this);
}

Expand Down
2 changes: 1 addition & 1 deletion Packages/com.mattshark.openflight/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.mattshark.openflight",
"displayName": "OpenFlight",
"version": "1.7.6",
"version": "1.7.7",
"description": "A VRChat flight system that allow all kinds of avatars to fly. https://github.com/Mattshark89/OpenFlight-VRC",
"bugs" : {
"url" : "https://github.com/Mattshark89/OpenFlight-VRC/issues"
Expand Down

0 comments on commit 4304cd7

Please sign in to comment.