I have been looking for some code that is already written but have not had any luck with my searches.
Basically, I want to iterate through a collection of Types against itself.
For example, I have a Type that is a cube. Let's call it target. I create 50 of them.
I want to select the first cube in the list and then compare it against the rest of the list (the other 49).
If we call the first one cube1 then I want to compare cube1 against cube2, cube3, cube4, etc... to the end of the list.
And then I want to get cube2 and compare it against the rest of the list...cube1, then cube3, cube4, etc...
I hope it is clear what I am trying to do. Has anyone got any code to do this? I hate to reinvent the wheel.
Thanks!
By the way - I am doing this as an alternative to using regular Blitz collision code. I may have to resort to using Linepicks though.
Basically, I want to iterate through a collection of Types against itself.
For example, I have a Type that is a cube. Let's call it target. I create 50 of them.
I want to select the first cube in the list and then compare it against the rest of the list (the other 49).
If we call the first one cube1 then I want to compare cube1 against cube2, cube3, cube4, etc... to the end of the list.
And then I want to get cube2 and compare it against the rest of the list...cube1, then cube3, cube4, etc...
I hope it is clear what I am trying to do. Has anyone got any code to do this? I hate to reinvent the wheel.
Thanks!
By the way - I am doing this as an alternative to using regular Blitz collision code. I may have to resort to using Linepicks though.