Hi All,
First of all. I am very new to animation and game dev. So, pardon me if this is too basic question.
I have a similar setup as Spine Boy aim. However, in run-time, I want to move crosshair bone with left/right stick in 360degree. It works fine and all bones follow the crosshair. However, spawned projectile when moved always have some angle, even if I put crosshair on top of the character position (keeping stick position in upward direction). I know it's because how bones are aligned and direction that I calculate based on two bones(the spawning point and crosshair). Is there anyway to make sure bones are aligned in straight line other than manually setting up bones such a way in spine?
The problem with manual setup is: The crosshair bone has IK setup on left arm bone where as spawning point is on first finger of palm. I attempted to diagonally align left arm bone with first finger, but character looks weird.
Please, guide me to some direction that I can take to correct it. I am using Unity and bone follower script to move crosshair.