Mecanim: Get Enemy pointing arrow / magic @ Player

Here’s a video showing the problem: http://sfbaystudios.com/shootingWrong.mov

The enemy archer, although he knows where the player is, always points the arrow to the right. I’ve included a LookAt command and while he then turns, the arrow still points to his right, rather than at the player.

How does one force the enemy to point the arrow at the player, rather than to the right every time?

Thanks!

I’m assuming that the animation is designed to shoot straight ahead. In the animation clip importer, try these settings:

Root Transform Rotation:

  • Bake into Pose: ticked
  • Based Upon (at Start): Original
  • Offset: (try it at 0, but change it to 90 or -90 if necessary)

Then click Apply and test it out.