Is there any way to implement soft bodies? I know Box2D doesn’t really have support for them, but is there some way to implement them in Corona? [import]uid: 8782 topic_id: 4405 reply_id: 304405[/import]
I’m curious to hear what types of soft bodies you want to create, and what reactions you’d like to see upon collision… I guess you want something to behave a bit like a cushion (but not liquid)? I wonder if this could be done by creating a circle chain of joint-connected individual rectangle physics objects. Or by using a surrounding collision sensor which slows down the speed of incoming objects. [import]uid: 10284 topic_id: 4405 reply_id: 13854[/import]
I was thinking something similar to the Jelly Car games, where the objects can squish and change shape slightly, but spring back when the pressure is released. It might be possible to do with joint-connected objects (a ton of them for a realistic effect), but that would probably have really poor performance. It’d be interesting to try, though. [import]uid: 8782 topic_id: 4405 reply_id: 13898[/import]
If you know the sort of shape deformation you want, you could get the effect with clever use of sprites etc.
To get a ‘soft’ object I would have a large, or series of, sensors which cause a gentle to strong force to be applied either against the object, the ‘other’ object or both, depending on your requirements. Eg: There would be no point applying force to the ground, but the body would want to act ‘soft’ on collision.
Matt [import]uid: 8271 topic_id: 4405 reply_id: 14022[/import]