Files
Dec2017-Script-Dump/UnityEngine/HumanPose.cs
T
2026-06-04 11:42:34 +02:00

38 lines
881 B
C#

using System;
namespace UnityEngine
{
// Token: 0x02000228 RID: 552
public struct HumanPose
{
// Token: 0x06002638 RID: 9784 RVA: 0x0002BD0C File Offset: 0x00029F0C
internal void Init()
{
if (this.muscles != null)
{
if (this.muscles.Length != HumanTrait.MuscleCount)
{
throw new ArgumentException("Bad array size for HumanPose.muscles. Size must equal HumanTrait.MuscleCount");
}
}
if (this.muscles == null)
{
this.muscles = new float[HumanTrait.MuscleCount];
if (this.bodyRotation.x == 0f && this.bodyRotation.y == 0f && this.bodyRotation.z == 0f && this.bodyRotation.w == 0f)
{
this.bodyRotation.w = 1f;
}
}
}
// Token: 0x04000659 RID: 1625
public Vector3 bodyPosition;
// Token: 0x0400065A RID: 1626
public Quaternion bodyRotation;
// Token: 0x0400065B RID: 1627
public float[] muscles;
}
}