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); }
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; }