Hi. I am having a little problem with my RPG arrow. I have to rotate it to get a nice movement direction… Here is the code. Hope someone knows how to do this
var projectile : Rigidbody= Instantiate(bullet, muzzlePoint.transform.position, muzzlePoint.transform.rotation);
muzzlePoint.transform.rotation);
projectile.rigidbody.isKinematic= false;
projectile.transform.LookAt(hit.point);
// have to hide this part
projectile.rotation.eulerAngles.x-=85;
projectile.rotation.eulerAngles.y+=20;