raycast is pointing in two directions?

My raycast is pointing in two directions. one direction is the direction i actually want it to point the other direction is the same as the other, except it doesn’t rotate on the Z axis.


how can i solve this issue? here’s the code I’m using. My bullet is a child of my weapon.

RaycastHit hv;
if (Physics.Raycast(bullet.transform.position,bullet.transform.forward,out hv, range))
		Debug.Log("weapon hit");

FIXED IT. I simply ran my code within FixedUpdate.