Hi everyone ! How is it goin ?
I knew box2d since a few year but didn't dived into it before last week.
This is awesome !
I've added some missing (for me) method in order to answer my as3 reflex such as :
m_world.getBodyByName() ;
body.AsUserData();
m_world.GetIndexOf(body);
body.getName()=="wrog name" return false;
m_world.Contain(body) return true/false
+single name for bodydef inherited in body etc..
I'm almost addin a tween manager (still have some issue) and I now dispatch contact events:
body.addEventListener(b2ContactEvent.ADD,doColl);
m_world.addEventListener(b2ContactEvent.PERSIST,doColl);
to manage whatever you like...
but in order to add method to this I have some questions :
Can I access a contactResult from the contactManager (how is it linked to a single b2Contact ??)
in order to get the strenght of this contact (that must be the normal impulse, no ??).
When tracing my pair in a contact, when one of the body is m_wold.m_ground or a static body, this return null ??
well here is a small try of my new method (of course you'll se nothing), in a simple image galery:
http://www.agence-anonyme.com/lab/pub/swf/tictac.html
Still need to comment my source and achieve some things and I'll publish my mods (is someone interested ??)
Well thanks a lot !!
I knew box2d since a few year but didn't dived into it before last week.
This is awesome !
I've added some missing (for me) method in order to answer my as3 reflex such as :
m_world.getBodyByName() ;
body.AsUserData();
m_world.GetIndexOf(body);
body.getName()=="wrog name" return false;
m_world.Contain(body) return true/false
+single name for bodydef inherited in body etc..
I'm almost addin a tween manager (still have some issue) and I now dispatch contact events:
body.addEventListener(b2ContactEvent.ADD,doColl);
m_world.addEventListener(b2ContactEvent.PERSIST,doColl);
to manage whatever you like...
but in order to add method to this I have some questions :
Can I access a contactResult from the contactManager (how is it linked to a single b2Contact ??)
in order to get the strenght of this contact (that must be the normal impulse, no ??).
When tracing my pair in a contact, when one of the body is m_wold.m_ground or a static body, this return null ??
well here is a small try of my new method (of course you'll se nothing), in a simple image galery:
http://www.agence-anonyme.com/lab/pub/swf/tictac.html
Still need to comment my source and achieve some things and I'll publish my mods (is someone interested ??)
Well thanks a lot !!