Example #1
0
 private void UpdateKickVertices()
 {
     kickMask.pos         = Pos;
     kickMask.vertices[0] = new Vector2(0, -radius);
     kickMask.vertices[1] = new Vector2(kickRadius, 0);
     kickMask.vertices[2] = new Vector2(0, radius);
     kickMask.RotateRadians(orientation);
 }
Example #2
0
 private void UpdateMask()
 {
     if (maskOrientation != orientation)
     {
         maskOrientation = orientation;
         for (int i = 0; i < poly.vertices.Count; i++)
         {
             poly.vertices[i] = baseVertices[i];
         }
         poly.RotateRadians(orientation);
     }
     poly.pos = Pos;
 }