Closed lefixx closed 3 years ago
I think this may be a documentation error, as opposed to a bug per se. In this case TTS is just exposing the results from Unity's RaycastAll
(or rather RaycastNonAlloc
) which states:
Note that the order of the results is undefined
It's probably best to submit a PR (or issue) against the docs (https://github.com/Berserk-Games/Tabletop-Simulator-API) and if required, sort the results yourself.
Fixed in v13.0 according to notes "Fixed Physics.cast not returning list in correct order"
Describe the bug According to documentation "Entries are in the order of being hit." Note that direction of cast is from top to bottom.
To Reproduce
Steps to reproduce the behavior: Make a stack of three object and cast from a point of origin over them towards the table.
Doing this
Tabletop Simulator Info (please complete the following information):
https://user-images.githubusercontent.com/9057787/103459711-d5b71a00-4d19-11eb-81a7-69c1c2e21000.mp4