c# 에서 타원(ellipse) 움직임 구현
public void indicator_Ellipse(float angle){//타원공식dAngle = (angle- ellipse_start_offset) * Mathf.Deg2Rad;x = Mathf.Sin(dAngle) * xAxis;y = Mathf.Cos(dAngle) * yAxis;//button.localEulerAngles = new Vector3(0, 0, -buttonAngle);_arrow.anchoredPosition = new Vector2(x, y);_arrow.localEulerAngles = new Vector3(0,0, -(angle - ellipse_start_offset)); //같이 회전하는 화살표 UI 회전값}
댓글 없음:
댓글 쓰기