Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mstfacmly | |
Old Version | Published before Godot 3 was released. |
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);
if !col_top.empty():
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 get_contact_collider_pos() or any similar function. Does anybody have any ideas?
ds is called by:
ds = get_world().get_direct_space_state()