How would i tell in which direction the closest surface would be eg wall roof etc
Im aiming to find out in which direction the closest surface to a player would be, so that i can attach a grapple without the player needing to look in that direction, eg if hes flying from one wall to another and is closest to the roof at the time the grapple would attach to the roof rather than the direction hes looking.