Buoyancy on a sprite object

Topics: Developer Forum, User Forum
Dec 16, 2013 at 9:55 AM
Hey guys I am pretty new to physics implementation in games. I want to do something very simple that is give a object some buoyancy under water in FarseerPhysics 3.5. I can see that there is a Buoyancy controller but I do not understand how to use it with a sprite object or a texture2d object. In general I want to load a graphic image as a object like a body and then apply force to it with buoyancy so that it seems that it is moving underwater.

Appreciate any help!!!
Dec 17, 2013 at 4:34 AM
Check out the TestBed project in the downloads section, there's a buoyancy demonstration there.

And for rendering a texture check out the Samples project in the downloads section. Advanced Demo 1 is the one you want I think.