GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

PySoy: Body Refactor

completed by: Nikolay Lazarov

mentors: Amaury Medeiros, Arc Riley, Tony Young, David Czech, Mayank Singh

In order to (greatly) simplify connecting scenes was recently renamed to soy.scenes._world - a single world for all scenes. While this left some things needing to be cleaned up, it made a few other things much simpler and potentially cleaner.

Our soy.bodies currently create a space-less ode.Geom during construction but not a ode.Body because there was no world for them to be added to - now there is. Move body creation back to the constructors. We'll still use Geom position/etc for the various properties and we can leave self.body and self.geom connected. Any checks for the body existing (eg, to add force) can be removed along with any related fallback code.

As we move into the realm of being able to connect scenes we can use the geom offset to allow a body to be connected to bodies in other scenes via a joint, though that is beyond the scope of this task.

While working on this task you should join and remain in #PySoy on Freenode to get help, feedback, and guidance from mentors and other developers. Code updates which may affect your work are also announced here as they happen. This is especially important for this task as other GCI tasks may be worked on to modify the same function.

When you've done, commit your work and post the resulting changeset url to this task.