Now we want to make the main character interact with our world.
We'll add some new methods to the Character
module as follows:
function Character:initializePhysics () self.physics = {}
self.physics.body = PhysicsManager.world:addBody ( MOAIBox2DBody.DYNAMIC )
self.physics.body:setTransform ( unpack(character_object.position) )
No credit card required