mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
ASTExtension: Removed need for Avatar Scale Tool
This commit is contained in:
parent
458d4b3987
commit
5c7f7ab265
7 changed files with 257 additions and 137 deletions
|
@ -8,6 +8,12 @@ public static class PlayerSetupExtensions
|
|||
// immediate measurement of the player's avatar height
|
||||
public static float GetCurrentAvatarHeight(this PlayerSetup playerSetup)
|
||||
{
|
||||
if (playerSetup._avatar == null)
|
||||
{
|
||||
ASTExtensionMod.Logger.Error("GetCurrentAvatarHeight: Avatar is null");
|
||||
return 0f;
|
||||
}
|
||||
|
||||
Vector3 localScale = playerSetup._avatar.transform.localScale;
|
||||
Vector3 initialScale = playerSetup.initialScale;
|
||||
float initialHeight = playerSetup._initialAvatarHeight;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue