teddBroiler/emo-framework-experiment — pull request #21 by dreadpiratepj (2012-08-24 19:57:55+00:00)
Title: Emo-Android to Emo-iOS porting

Hi Tedd,

I started porting some of your changes to Emo-iOS

The changes so far:

* Some helper functions added to emo.Vec2 class.
1. Vec2.getDegreeTo(vec) - gets degree to given Vec2 instance.
2. Vec2.getRadianTo(vec) - gets radian to given Vec2 instance.
3. Vec2.fromDegree(deg) - creates Vec2 instance from given degree.
4. Vec2.fromRadian(rad) - creates Vec2 instance from given radian.

* Function for setting center of mass added to Body class.
Body.setCenterOfMass(mass, center, inertia)

* Filter class is added for setting collision filter.
Physics.nut :
1. emo.physics.Filter() - a constructor which sets both
category and mask to "0xFFFF" as default value. This allows objects to
collide with every other objects with physics.

2. emo.physics.Fixture.setFilter(filter) - sets given filter
dynamically to the fixture instance.

3. emo.physics.FixtureDef() - this constructor is changed to create
filter class instance as a member.

* Misspelling corrected. Physics.nut : Moter -> Motor.