-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No GetShapes function #547
Comments
Thank you for filing this issue (and the others)! I recall going back and forth in my thoughts on whether to have a matching |
No problem! A lot of these things I discovered quite naturally while trying to serialize/deserialize everything. Any inconsistencies left in the code will often be exposed. |
100% I was of the same perspective on this! I'm glad you were too. As for having a So maybe if nothing else, this is a work around for you for now. |
A question for me now about this, is: do I want to try and remove the other ID collection getting functions in favor of always going in linear order? While this current inconsistency bothers me, I'm not sure removing these others won't break something that can't be broken. It also removes functionality that users may have used before and will need to update from. I've made a new issue (issue #568) with a slightly different title that emphasizes my issue of this being an inconsistency so I can close this issue in the meantime and focus on the inconsistency. |
Desired Behavior:
There is
GetBodies
,GetJoints
,GetContacts
... but there should also be aGetShapes
, probably defined like this:Actual Behavior:
It doesn't exist. I can't access all the shapes I've created, because I can't access the
m_shapeBuffer
directly without knowing the ShapeID, and the only way to get the ShapeID is either if I stored it somewhere when I created the shape, or by accessing the shapes assigned to a body.The text was updated successfully, but these errors were encountered: