2Dで逆運動学を説明するWebサイトを見つけました。
Starting from the joint nearest the
end point:
1. Calculate a force vector from the end of the bone to the target.
2. Calculate the dot product of the force vector and the Right angle
vector.
3. Multiply it by a small value, like 0.01.
4. Add it to the angle of the joint.
http://freespace.virgin.net/hugo.elias/models/m_ik.htm
したがって、私のアプリケーションで骨を設計する方法は、関節と角度の観点からです。それぞれの「骨」は関節であり、角度と長さです。ボーンの終点は、始点と角度の単位ベクトルに長さを掛けたものになります。
したがって、ステップ1では、方向がターゲットに向かう単位ベクトルを生成し、それを終点とターゲットポイントの間の距離で乗算するだけだと思います。
ステップ2は私が確信が持てないところです。内積の作成方法は知っていますが、彼らが話すこの直角ベクトルを取得する方法がわかりません。
ありがとう