Author Topic: SOLVED - How do I find the closest distance of an edge?  (Read 432 times)

This is what I think ContainerSearchCurrDist()'s distance endpoint is

Code: [Select]
Raycast
    V

|------|
|        |
|   X   |
|        |
|------|

This is what I want the endpoint to be:

Code: [Select]
Raycast
    V

|--X---|
|        |
|        |
|        |
|------|

Is this possible?
« Last Edit: July 12, 2012, 11:05:57 PM by Axolotl »


I thought the collision position was already output by containerRayCast()


I don't quite see what you mean. You can set the endpoint to anything. Do you want to know where it hit? That is the second to fourth words of the value returned by containerRayCast.