- Home /
Raycast Drection change problem
i have search this many times , but can't find. I need change direction of my raycast in while function while (numberofdrobs > 0){ numberofdrobs = numberofdrobs - 1 ; GameObject Holeshot = Instantiate (hole , hit.point,transform.rotation) as GameObject; Holeshot.transform.LookAt(hit.point + hit.normal); Holeshot.transform.parent = hit.transform; Destroy(Holeshot,20f);
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220611230506im_/https://answers.unity.com/themes/thub/images/avi.jpg)