How do you use the "Target" magic direction mode?

Lavos

Member
Hi,
I am able to use magic projectiles with no issue using the "Forward" and "Indicate" direction modes. However, I still haven't figured out how to use the "Target" direction mode. By debugging, I realized that my expected target (some random enemy) should not be in the Character layer, so I set its layer to "Enemy". Now I can see the projectile being thrown by my character at the enemy but it always ends up hitting the ground one meter away from the enemy. I did set the magic projectile gravity magnitude to 0 so this is definitely not a gravity issue. My guess is that the projectile is targeting the feet of the enemy because that is where the pivot is but I am really not sure.
Could you please tell me how to use the "Target" direction mode properly?
 
The Ricochet item in the demo scene provides a good example - you can use the Pivot Offset component to set a new location.
 
Top