Greetings to all.
I try to port Buoyancy Controller from WCK to XNA.
Calculated value in Flash IDE and Visual Studios converge. But the body after falling isn't turned. Launch the project and you will see about what I speak.
It is necessary for me to port files Buoyancy.as, BuoyancyEffect.as and ComputeSubmergedArea() method in PolygonShape class.
Waves and splashes I already ported, it isn't difficult, but with behavior of bodies in water it is a problem.
VS2008 Project -
http://www.sendspace.com/file/icoix3 (open file BuoyanceTest.cs in Tests folder)
WCK -
https://github.com/jesses/wck (box2das/controllers/buoyancyEffect.as)
Please help!
Thanks