R
R
RandomProgrammer2021-12-23 19:33:06
Unity
RandomProgrammer, 2021-12-23 19:33:06

How does Vector3.Reflect work?

I was trying to reflect a raycast's ray from a surface and found out about the Vector3.Reflect method , which gives the direction of the reflected ray given the direction of the ray and the normal of the surface. Of course, it's good that there is such a useful method, but I would like to know how it works under the hood, because I could not calculate the reflection manually.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question