I'm looking at the TestBreakable example and from what I understand this is what's happening:
* The test creates a body
* Then it creates two polygon shapes that will make up that body
* The fixtures are created for each polygon shape
When Break() is called, the Split method is being used. At this point, when these two bodies are split apart, are they still part of the original body? Or are two new bodies being created for each piece?
I've tried to refer to the documentation but I wasn't able to find anything that describes what the Split function does...
...Hrm, nevermind! Looking at the Split function's definition, it does create a new body!
Sorry if this seems like I am talking to myself but I wasn't sure initially. I figured I'd continue to post just in case someone else has a similar question. 🙂
* The test creates a body
* Then it creates two polygon shapes that will make up that body
* The fixtures are created for each polygon shape
When Break() is called, the Split method is being used. At this point, when these two bodies are split apart, are they still part of the original body? Or are two new bodies being created for each piece?
I've tried to refer to the documentation but I wasn't able to find anything that describes what the Split function does...
...Hrm, nevermind! Looking at the Split function's definition, it does create a new body!
Sorry if this seems like I am talking to myself but I wasn't sure initially. I figured I'd continue to post just in case someone else has a similar question. 🙂