/// <summary> /// Sets the body values to the values stored in the BodyData. /// </summary> internal void MapBodyInfoToChaFile(BodyData bodyData) { void setShapeValue(int idx, float val) { ChaControl.fileBody.shapeValueBody[idx] = val; ChaControl.SetShapeBodyValue(idx, val); } ChaControl.ChangeBustSoftness(bodyData.Softness); ChaControl.ChangeBustGravity(bodyData.Weight); setShapeValue(PushupConstants.IndexSize, bodyData.Size); setShapeValue(PushupConstants.IndexVerticalPosition, bodyData.VerticalPosition); setShapeValue(PushupConstants.IndexHorizontalAngle, bodyData.HorizontalAngle); setShapeValue(PushupConstants.IndexHorizontalPosition, bodyData.HorizontalPosition); setShapeValue(PushupConstants.IndexVerticalAngle, bodyData.VerticalAngle); setShapeValue(PushupConstants.IndexDepth, bodyData.Depth); setShapeValue(PushupConstants.IndexRoundness, bodyData.Roundness); setShapeValue(PushupConstants.IndexAreolaDepth, bodyData.AreolaDepth); setShapeValue(PushupConstants.IndexNippleWidth, bodyData.NippleWidth); setShapeValue(PushupConstants.IndexNippleDepth, bodyData.NippleDepth); }