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