Apr 5, 2011 at 2:02 PM
Edited Apr 5, 2011 at 2:06 PM
in the latest version of farseer you have moved restitution from the fixture to the body.
No we have not :)
Restitution works exactly like before and is therefore set per fixture. Restitution for bodies wouldn't make any sense.
however you still need to loop thorugh all fixtures to set the restitution to set the restitution of the body.
That is correct. As stated above you don't set a bodies restitution. It is just a wrapper for convenience i.e. if you want all fixtures on a body to have the same restitution anyway you can set it via body. That's why the getter just provides you with the
average restitution from all attached fixtures.
Restitution is still calculated and processed per fixture internally.