public Raycast ( Segment segment, Shape shapes, int maxCount, bool solidShapes, object userData ) : int | ||
segment | Segment | Defines the begin and end point of the ray cast, from p1 to p2. /// Use Segment.Extend to create (semi-)infinite rays. |
shapes | Shape | A user allocated shape pointer array of size maxCount (or greater). |
maxCount | int | The capacity of the shapes array. |
solidShapes | bool | Determines if shapes that the ray starts in are counted as hits. |
userData | object | Passed through the worlds contact filter, with method RayCollide. This can be used to filter valid shapes. |
return | int |