Thanks to the Corona team for an easy dev. environment - I really need to say that!
Never having used the physics capabilities I tried a simple test with many (over 100) small boxes that are falling 1-by-1 about 500ms apart. I would like to have a way to attract a box where my finger would be. The big unknown is the API’s have all sorts of actions that can be applied to a body after (for example) physics.addBody is used.
With so many objects being created how do I access ONLY the 1 ball initially dropping down, ignoring the others? The function physics.addBody does not return a body identifier (if I read the API’s right) so how do I know what body identifier to use? For example:
Body:applyLinearImpulse( xForce, yForce, bodyX, bodyY )
How do I get/find the object “Body” (the last body added to physics)??? Is this the same as the object identifier used when calling physics.addBody?
Thanks in advance! [import]uid: 156018 topic_id: 35211 reply_id: 335211[/import]