You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building islands, a graph is created where the vertices are bodies. There is an edge between the bodies if there is a contact or a joint between them.
As a result, we get several graphs that are added to the island one by one and island.Solve() is executed for them.
Question: Can I add graphs not one by one, but all at once for the islands that are used in b2World::Solve? Will the behavior of the bodies change after that?
Why I think so:
As I understand it, only contacts and joints with this body can change the position and speed for it.
This can be done only by those bodies that are with him in the same graph. This means that bodies from another graph do not affect it.
So nothing should change if I add all the graph at once.
I don't worry about additional memoty allocation when expanding the islands.
Thank you.
The text was updated successfully, but these errors were encountered:
When building islands, a graph is created where the vertices are bodies. There is an edge between the bodies if there is a contact or a joint between them.
As a result, we get several graphs that are added to the island one by one and island.Solve() is executed for them.
Question: Can I add graphs not one by one, but all at once for the islands that are used in b2World::Solve? Will the behavior of the bodies change after that?
Why I think so:
As I understand it, only contacts and joints with this body can change the position and speed for it.
This can be done only by those bodies that are with him in the same graph. This means that bodies from another graph do not affect it.
So nothing should change if I add all the graph at once.
I don't worry about additional memoty allocation when expanding the islands.
Thank you.
The text was updated successfully, but these errors were encountered: