- Home /
Question by
Kool_Kooky_Pop · Sep 10, 2020 at 03:02 PM ·
raycasthitnormalsnormalnan
RaycastHit.normal returns NaN
As the title says, whenever I do a raycast (BoxCast specifically) and it hits an object, the normal returns NaN. I don't know why it would do this, as I'm just testing with Unity default cubes and box colliders.
When I Debug.Log the normal when the raycast hits something, I got this exact sentence: (NaN, NaN, NaN)
Comment
Your answer
Follow this Question
Related Questions
rigidBody is heading to a slightly different angle to where im calculating it would be using Reflect 1 Answer
hit.normal rotation problem, help please really confused 1 Answer
Using Raycast Normal to match surface rotation to instantiated gameobject? EXAMPLE GIF Included 0 Answers
RaycastHit.normal and Orientation to a Path 1 Answer
RaycastHit normal only pitch+yaw 2 Answers