Hey guys so I need to make a raycast with constant v shape in front of player and so that it raycast horizontally and doesn’t intersect with player(just like in pic 1 but on any rotation, I need to place hands according to those rays).
Problem is that whenever I turn the player rays do not turn with it(I make rays out of the child empty object).
Physics.Raycast(IKRayOrigin.transform.position + originOffset, -IKRayOrigin.transform.up + leftVector, out L_hit, ledgeScript.grabHeight) Physics.Raycast(IKRayOrigin.transform.position + originOffset, -IKRayOrigin.transform.up + rightVector, out R_hit, ledgeScript.grabHeight)
Ray Offset values:
left vector: x: -0.47ff y:0f z:0.23
right vector 0.35f,0,0.23
Empty game object(origin local position):