I'm trying to get some ledge detection going on a KinematicBody in which I have a collision ray going to a target.
if wrun == "vert":
var col_top = ds.intersect_ray(ledgecol,ptarget);
ledge_col = col_top ;
return ledge_col ;
I want to get the Y position of where the collision hits so that I can check against the player's position, but I can't seem to call on getcontactcollider_pos() or any similar function. Does anybody have any ideas?
ds is called by:
ds = get_world().get_direct_space_state()