new bug in restitution

Apr 5, 2011 at 1:57 PM

Hi im not sure if this is by desing or not but this took me some time to work out.

in the latest version of farseer you have moved restitution from the fixture to the body.

however you still need to loop thorugh all fixtures to set the restitution to set the restitution of the body.

Developer
Apr 5, 2011 at 2:02 PM
Edited Apr 5, 2011 at 2:06 PM
riddler wrote:

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.