Implementing Fluid

Topics: Developer Forum
Jul 6, 2008 at 9:53 PM
For the past couple of days I've been trying to get some fluid into a little game I'm making with XNA. I can deploy the demo just fine and run it with no errors, but the fluid just doesn't work or show up on the screen. Here's the code I have so far for it, maybe someone here can help me with it.

recBody = BodyFactory.Instance.CreateRectangleBody(physicsSimulator, 100, 100, 1);
rectangleGeom = GeomFactory.Instance.CreateRectangleGeom(physicsSimulator, recBody, 100, 100);
waterAABB = new AABB(new Vector2(150, 240), new Vector2(50, 140));
waterContainer = new AABBFluidContainer(waterAABB);
fluidDragController = new FluidDragController();
fluidDragController.Initialize(waterContainer, .5f, 3.3f, 1, new Vector2(0, 100)); // Demo's Gravity is (0,200)