- Home /
Do Raycasts trigger collisions?
Say I have a cube with a script with OnTriggerEnter(Collider collider)
method. Then a ray hits the cube's collider. Would this method be called?
I'm using Physics.Raycast(...)
Comment
Best Answer
Answer by AlienNova · Oct 22, 2017 at 12:19 AM
Do you mean OnCollisionEnter()? If so no. Raycast do not trigger any collisions.
Also I saw that you edited it to OnTriggerEnter() The answer is still no.
Your answer
![](https://koobas.hobune.stream/wayback/20220612141552im_/https://answers.unity.com/themes/thub/images/avi.jpg)