Get Face/Triangle size in world space from RaycastHit
I have a FPS Controller (ridged body) using a SphereCast to detect ground and surface angle for slope detection, but stairs and ledges are still an issue. My plan was to get the the Y scale of any given 85-90 deg wall and if the scale was small enough I would have the controller move to the top of the ledge instead of launching its self into a small jump. My Best guess would be to use hit.collider.triangleIndex but I have no idea how to utilize/implement this
Any help to get me on the right track would be great thanks!
Your answer
Follow this Question
Related Questions
Raycast not detecting hit with mesh 0 Answers
How to offset a raycast? 0 Answers
Swipe single object at a time upon touch, not swiping allover the screen 0 Answers
RayCast2D and RayDraw errors 0 Answers
Inheritence problems with raycast 1 Answer