Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BustGravity
- {
- // Token: 0x06000CA8 RID: 3240 RVA: 0x0005E0A8 File Offset: 0x0005C2A8
- public BustGravity(CharFemale _female)
- {
- this.female = _female;
- if (this.female)
- {
- this.customInfo = this.female.femaleCustomInfo;
- }
- }
- // Token: 0x06000CA9 RID: 3241 RVA: 0x0005E0F8 File Offset: 0x0005C2F8
- public void Change(float gravity, int[] changePtn)
- {
- if (null == this.female)
- {
- return;
- }
- if (this.customInfo == null)
- {
- return;
- }
- this.customInfo.bustWeight = gravity;
- this.ReCalc(changePtn);
- }
- // Token: 0x06000CAA RID: 3242 RVA: 0x0005E12C File Offset: 0x0005C32C
- public void ReCalc(int[] changePtn)
- {
- if (null == this.female)
- {
- return;
- }
- if (this.customInfo == null)
- {
- return;
- }
- if (changePtn.Length == 0)
- {
- return;
- }
- float num = this.customInfo.shapeValueBody[1] * this.customInfo.bustSoftness * 0.5f;
- float y = Mathf.Lerp(this.range[0], this.range[1], this.customInfo.bustWeight) * num;
- DynamicBone_Ver02[] array = new DynamicBone_Ver02[]
- {
- this.female.getDynamicBone(CharFemaleBody.DynamicBoneKind.BreastL),
- this.female.getDynamicBone(CharFemaleBody.DynamicBoneKind.BreastR)
- };
- for (int i = 0; i < changePtn.Length; i++)
- {
- int ptn = changePtn[i];
- DynamicBone_Ver02[] array2 = array;
- for (int j = 0; j < array2.Length; j++)
- {
- DynamicBone_Ver02 dynamicBone_Ver = array2[j];
- if (dynamicBone_Ver != null)
- {
- dynamicBone_Ver.setGravity(ptn, new Vector3(0f, y, 0f), true);
- }
- }
- }
- }
- // Token: 0x04000E79 RID: 3705
- private CharFileInfoCustomFemale customInfo;
- // Token: 0x04000E78 RID: 3704
- private CharFemale female;
- // Token: 0x04000E7A RID: 3706
- private float[] range = new float[]
- {
- 0f,
- -0.005f
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement