mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Code refactor
This commit is contained in:
parent
cd4711a8e5
commit
757badf4f6
517 changed files with 2534 additions and 2221 deletions
|
@ -78,13 +78,15 @@ namespace RimWorldAnimationStudio
|
|||
{
|
||||
if (rotation == 0 || rotation == 2)
|
||||
{
|
||||
float multi = rotation == 0 ? -1f : 1f;
|
||||
|
||||
switch (bodyType)
|
||||
{
|
||||
case "Male": return new Vector3(0.035f, 0f, -0.050f);
|
||||
case "Female": return new Vector3(0.002f, 0f, -0.044f);
|
||||
case "Thin": return new Vector3(0.000f, 0f, -0.024f);
|
||||
case "Hulk": return new Vector3(0.118f, 0f, -0.194f);
|
||||
case "Fat": return new Vector3(0.141f, 0f, -0.084f);
|
||||
case "Male": return new Vector3(0.035f * multi, 0f, -0.050f);
|
||||
case "Female": return new Vector3(0.002f * multi, 0f, -0.044f);
|
||||
case "Thin": return new Vector3(0.000f * multi, 0f, -0.024f);
|
||||
case "Hulk": return new Vector3(0.118f * multi, 0f, -0.194f);
|
||||
case "Fat": return new Vector3(0.141f * multi, 0f, -0.084f);
|
||||
default: return Vector3.zero;
|
||||
}
|
||||
}
|
||||
|
@ -120,13 +122,15 @@ namespace RimWorldAnimationStudio
|
|||
{
|
||||
if (rotation == 0 || rotation == 2)
|
||||
{
|
||||
float multi = rotation == 0 ? -1f : 1f;
|
||||
|
||||
switch (bodyType)
|
||||
{
|
||||
case "Male": return new Vector3(-0.035f, 0f, -0.050f);
|
||||
case "Female": return new Vector3(-0.002f, 0f, -0.044f);
|
||||
case "Thin": return new Vector3(-0.000f, 0f, -0.024f);
|
||||
case "Hulk": return new Vector3(-0.118f, 0f, -0.194f);
|
||||
case "Fat": return new Vector3(-0.141f, 0f, -0.084f);
|
||||
case "Male": return new Vector3(-0.035f * multi, 0f, -0.050f);
|
||||
case "Female": return new Vector3(-0.002f * multi, 0f, -0.044f);
|
||||
case "Thin": return new Vector3(-0.000f * multi, 0f, -0.024f);
|
||||
case "Hulk": return new Vector3(-0.118f * multi, 0f, -0.194f);
|
||||
case "Fat": return new Vector3(-0.141f * multi, 0f, -0.084f);
|
||||
default: return Vector3.zero;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue