Closed GoogleCodeExporter closed 9 years ago
I've not tested it fully, but I changed Farseer Physics Engine 3.0 to support
mass on static bodies by changing Body::ResetMassData() to exit later on static
bodes:
On the line:
// Kinematic and static bodies have zero mass.
if (....)
I took out the check for the static body type and moved it under the loop that
accumulates the mass data on all fixtures.
I inserted this code under the loop (in C#)
if (_bodyType == BodyType.Static)
{
_sweep.Center0 = _sweep.Center = _xf.Position;
return;
}
Now static shapes have mass and they should work with joints.
Original comment by gentoo...@hotmail.com
on 24 Jun 2010 at 1:13
Original comment by erinca...@gmail.com
on 25 Mar 2011 at 6:53
Original issue reported on code.google.com by
Tralorni...@gmail.com
on 29 Apr 2010 at 3:46