Physics Engine Insanity

All This needs to be cleaned up Trying to figure out the approved way to use the physics engine. There are some conflicting pages out there:

Objects in Display Groups:

can use them, don't need in same container. however, you can't move/ change their position towards each other. that changes the coordinate system.

Objects in Display Groups:

http://developer.anscamobile.com/forum/2011/09/12/my-code-doesnt-work-it-should

"Physics bodies all need to be in the same group"

"I have items from two groups collide all the time. What I have found is that if you assign x and y values to your groups, however, the collision system fails between those groups. Seems the collision detection relies on checking object coordinates against each other and when you assign group x,y values you localize the object coordinates to different origins, so according to the system the objects do not overlap."

https://developer.anscamobile.com/forum/2011/03/14/physics-and-groups

"However, unexpected results may occur if physical objects are added to different display groups, especially if the groups are then moved in different directions."

http://developer.anscamobile.com/forum/2011/09/12/my-code-doesnt-work-it-should

Display Groups As objects: http://developer.anscamobile.com/forum/2011/08/27/display-groups-and-physics

you can't use display groups as objects

http://developer.anscamobile.com/forum/2011/06/01/cant-figure-out-my-mistake

http://www.youtube.com/watch?v=DL_or4XKTfU

this project (i also saw on youtube ) uses display groups. however, they must be constructed in a special manner. (i tried it and couldn't get my objects to show up.

Defining shapes http://www.box2d.org/manual.html

box 2d says counter clockwise.

http://developer.anscamobile.com/content/game-edition-box2d-physics-engine

Shape definitions should declare their points in clockwise order

(it seems like all of the examples are showing counter clockwise, but saying clockwise )

http://developer.anscamobile.com/forum/2011/08/17/infamous-physics-crash-cannot-resolve

custom shapes must have less than 8 sides - or be composed of multiple shapes.

Physics Stop http://developer.anscamobile.com/forum/2010/09/17/stop-physics

"Trying to figure out a workaround that let me still use physics.stop() and the only one that seems to work is to be super-anal about removing EVERY SINGLE object used in the simulation before calling physics.stop()."

http://developer.anscamobile.com/forum/2011/08/01/really-weird-error

Proper startup / Shutdown Method http://developer.anscamobile.com/forum/2011/09/20/physics-debugging

http://developer.anscamobile.com/forum/2011/05/23/corona-simulator-crash-when-add-physics-body

"call physics start before adding objects"

MOdifying world during collisions http://developer.anscamobile.com/forum/2011/05/23/corona-simulator-crash-when-add-physics-body

set timer during collisions

Misc http://blog.anscamobile.com/2011/08/solutions-to-common-physics-challenges/

solutions to common problems

My Issues i had a ghost collision situation - i would launch my character, and it would automatically collide with something. and the screen would go black. traced it to the fact that i was passing in the same data structure to define a custom physics shape.