My LineRenderer doesn’t go to exactly hit.point, it goes to a few units below it.
I know this is because of some funkery involving world and local space, but I’m not sure how to fix it…
if (bulletTrail != null && firePoint != null)
{
LineRenderer l = Instantiate(bulletTrail);
l.transform.SetParent(firePoint.transform);
l.SetPosition(0, firePoint.transform.position);
l.SetPosition(1, hit.point);
Destroy(l.gameObject, .1f);
}
Any ideas?
Thanks!