Hi,
I’m trying to make a tactical turn based game, like Silent Storm and Jagged Aliance2. The thing is going forward nicely. But, i’m constructing the accuracy and shooting system as follows: I’ve the Mixamo Swat soldier rigged and animated. Because i dont know how to animate characters or anything about ik, i make the soldier point to a target disabling de Animator component, and rotating the spine by code. Prehistoric way , but a logic one. The problem is that i select the target pointing it with the mouse cursor. When the target is selected, the current soldier will turn on th Y axis to point to the target. Okay! the soldier is pointing to the target, but the gun is in the top right corner of the soldier, so it never point to the target with any precission. I tried rotating the spine and at long distances it is close to accurate. But obviously this is not the way! I need to rotate the player, and then the spine to SOME Quaternion that makes the gun point to the target.
I dont know if this is barely explicatory
Sorry for my English And Thanks