Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
指のパスに沿って円を回転させたい。指をもっと速く動かせば、円は速く回転しなければなりません。指をゆっくり動かすと、円は遅くなるはずです。また、円の動きは滑らかでなければなりません。どうすればこれを実装できますか? 助けてください。
UIPanGestureRecognizerを使用すると、レコグナイザーのVelocityプロパティを取得でき、その後、回転コード(glRotateまたはsmth else)でその値を使用して角度を修正できます。