Question by
Unity-Artcraft · Feb 21, 2020 at 06:12 PM ·
raycastvector3raycasthit
How to offset a raycast?
this was my attempt and this does of course not working, the raycast goes all over the place.
RaycastHit[] hitInfo = Physics.RaycastAll(transform.localPosition, transform.forward+rayOffset, rayDist, rayLayer);
Debug.DrawLine(transform.localPosition, transform.localPosition+(transform.forward+rayOffset)*rayDist, Color.red);
Comment
Your answer
Follow this Question
Related Questions
Get Face/Triangle size in world space from RaycastHit 0 Answers
Ballistic vector technique 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