Hi All,
SVN revision 92 introduced a handy setDensity function to fixtures- which is empty.
Is this a bug or is it pending implementation?
The quick fix would be to store the new density as shown below.
b2Fixture.as line 202
There is however a seemingly unused member in b2Fixture namely m_massData.
Is this supposed to store the last known mass data, returning it in GetMassData?
This would mean there is at least one more line of code missing from SetDensity and some additional functionality missing from GetMassData.
Regards,
nix
SVN revision 92 introduced a handy setDensity function to fixtures- which is empty.
Is this a bug or is it pending implementation?
The quick fix would be to store the new density as shown below.
b2Fixture.as line 202
Code:
public function SetDensity(density:Number):void {
m_density = density;
}
m_density = density;
}
There is however a seemingly unused member in b2Fixture namely m_massData.
Is this supposed to store the last known mass data, returning it in GetMassData?
This would mean there is at least one more line of code missing from SetDensity and some additional functionality missing from GetMassData.
Regards,
nix