Wondering if anyone has created the LUA code (for Corona) to turn a spine player/character into a Ragdoll? Would love to see the code re how to do this.
I’m assuming the code would have to (correct me if there is a better way):
- Loop through all bones in the animation at the time of collision
- Create a physics body attached to the bone (or should it be the image?) based on the position/size/rotation of the bone
- Create the necessary Joints between bones/physicsBodies (would have to parse spine json file to work out the parent-child relationships if this is possible?)