私はダイヤルを持っており、ユーザーがそれに触れると、回転してユーザーの指の動きに追従するようにします。
私は今、これを大まかなコードに入れているだけで、先に進んで実装する前に、これが正しい方法であるかどうか疑問に思っていましたか?
//on touch
angleOffset = atan2(touchY - centerPointOfDial, touchX - centerPointOfDial);
//on touch move
angle = atan2(touchY - centerPointOfDial, touchX - centerPointOfDial);
dialRotation = (angle - angleOffset)
myDial.rotation = dialRotation;
ありがとう