Hey all, I’m having an issue with my raycast shooting script. It’s very simple, and as of right now it’s working, however when you see the decal on the object it looks very sketchy. You’ll see what I mean in my photo:
_
_
If anyone can help me I’d appreciate it!
_
Here’s my code:
if (Input.GetButtonDown("Fire1") && Physics.Raycast(barrelPoint.transform.position, fwd, out hit, 100))
{
Debug.DrawRay(barrelPoint.transform.position, fwd, Color.green, 100);
var hitRotation = Quaternion.FromToRotation(Vector3.back, hit.normal);
var go = Instantiate(bulletHole, hit.point, hitRotation);
Destroy(go, 5);
}