public float GetGirthWorld(float height, BlendshapeType type) { if (dickTransform == null) { return(0f); } return(GetGirthLocal(height, type) * dickTransform.lossyScale.x); }
public static string BlendshapeTypeToString(BlendshapeType a) { return(blendshapeTypeName[(int)a]); }
public Vector3 GetXYOffsetWorld(float height, BlendshapeType type) { return(dickTransform.TransformPoint(GetXOffsetLocal(height, type) + GetYOffsetLocal(height, type)) - dickTransform.position); }
public Vector3 GetYOffsetLocal(float height, BlendshapeType type) { return(yOffsetCurves[(int)type].Evaluate(height) * dickUpAxis); }
public float GetGirthLocal(float height, BlendshapeType type) { return(girthCurves[(int)type].Evaluate(height)); }