access contactResult from contactManager

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 !!
Yes and no.
Contact results are not available, but there is similar information available inside each b2Contact. It is generally a frame out of date, though.
At the moment, b2Contacts are not accessible by the public API, but you seem the sort who would be capable of hacking in what you need, and doing the research. Doing this in a nice is currently a big discussion.

Or you could store the b2ContactResults yourself. This is the recommended way, just make sure to copy them, rather than keeping a reference to the old one.

Your addons seem like useful additions too, I"m sure people will appreciate them. Unfortunately, I don't think it'd be appropriate to add them to the main source as they tie the engine in with the display system, and be hard to port back to C++.
You might want to consider adding b2World.GetBodies():Array, rather than re-implementing all the Array methods from scratch.
well, for now, they are a lot of things i'm not able to hack !
Most of the engine is still a maze (but an amazing maze 😉 ).
When implementing new feathures, i just keep in mind that someone with a non hacked version could replace his librairy without havin to make a change in his code.
I'll show you if it can be useful without beiing dangerous..

For the contact result, i saw things like m_friction and compiled retribution forces, but the values returned doesn't seems to take consideration of the mouvement, it's just a mid value of bith bodies parameters, is it ??
not enough for what I wan to release. but maybe I could find this computation somewhere else instead of calculate it once again ??

Original thread: https://box2d.org/forum/viewtopic.php?t=3011