Raycast Start Position
Hello, I trying use Raycast on my enemy soldiers but there is problem I did empty object as child on end of the gun but ray is not going from there.
public void Shot()
{
Debug.DrawRay(muzzle.transform.position, Vector3.up, Color.white, 0.3f);
}
private void OnDrawGizmos()
{
Gizmos.color = Color.blue;
Gizmos.DrawSphere(muzzle.transform.position, 0.1f);
}
Anyone know why this can happening?
2020-07-19.png
(36.9 kB)
Comment