- Home /
Shoot arrow go to the side, upside down or always the same roation
I have script shooting arrow but when arrow is instantiate, it is on the side or upside down and not pointing to the target. I don't know why, furthermore, it always have the same rotation, regardless the player rotation. Here is my code for instantiate and shooting the arrow with addForce function.
var arrowClone = Instantiate(arrow,instanciateArrowPoint.position, transform.rotation);
position = target.position;
var direction = (position - transform.position ).normalized;
arrowClone.AddForce(direction * Time.deltaTime * speedFire);
Need help please !!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612084336im_/https://answers.unity.com/themes/thub/images/avi.jpg)