Skip to content

Commit

Permalink
Fixed an issue where the belly would be placed too low on old cards t…
Browse files Browse the repository at this point in the history
…hat had specific body scales
  • Loading branch information
thojmr committed Apr 30, 2022
1 parent a3b27f1 commit 684363b
Showing 1 changed file with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,22 +574,12 @@ await Task.Run(() =>
/// </summary>
internal Vector3 GetSphereCenter()
{
float bbHeight;

//in 6.0+ we can use a static sphere center height
if (infConfig.IsPluginVersionBelow(6.0))
{
//Measure from feet to belly
bbHeight = GetBellyButtonLocalHeight();
}
else
{
#if KKS
bbHeight = 0.97f;
#else
bbHeight = 10f;
#endif
}
#if KKS
var bbHeight = 0.97f;
#else
var bbHeight = 10f;
#endif

bellyInfo.BellyButtonHeight = bbHeight;
Vector3 bellyButtonPos = Vector3.up * bbHeight;

Expand Down

0 comments on commit 684363b

Please sign in to comment.