Ordering + raw methods instead of reversing.#497
Conversation
In some cases, native-bullet returns the ray results on a reversed order so it leads to unexpected bugs.
Added raw results ray tests too.
|
Hmmm... I wonder why the code used LinkedList... it will be less optimal in many ways but especially for sorting. |
|
Yes, I had the same wonder but without more knowledge I am reluctant to change it (that's why I asked here at first place) |
|
LinkedList is only more optimal in the cases where one is adding or On Thu, May 19, 2016 at 6:52 AM, NemesisMate notifications@github.com
|
|
I know all that theory, what I don't know is why it uses a LinkedList in first place. If the only reason is because of it was was just adding/removing, then I suppose it must be changed now (hm... or changed only for the sorting case?). Maybe changing it depending on the case would be the better but at cost of obtaining different list types on the different methods (with/without sorting).
If you are more eager to one of them just say it and I'll adapt it. |
|
Just use ArrayList in both cases. Whatever the original reasons for On Thu, May 19, 2016 at 7:12 AM, NemesisMate notifications@github.com
|
|
Thanks for the work :) |
Continuing the discussion in the pull request: #471, made the requested changes.