This project has moved and is read-only. For the latest updates, please go here.

Buoyancy controller AABB is drawing?

Topics: Developer Forum, User Forum
Feb 11, 2015 at 8:57 PM
Edited Feb 11, 2015 at 9:01 PM
In my game, I added a buoyancy controller
// Note i changed some of the parameters in AABB constructor just on here because they looked weird  in the code brackets, but the AABB works fine and is sized properly.

 AABB container = new AABB(new Vector2(waveController.Position.X , waveController.Position.Y), 
 new Vector2(waveController.Position.X ,  waveController.Position.Y));

 BuoyancyController buoyancy = new BuoyancyController(container, 0.25f, 7f, 1f, world.Gravity);
And in the game, it draws a thin white line around the AABB. I am not calling draw anywhere


How do I not draw this line? It happens when I add the controller to the world.

Thanks very much.
Feb 15, 2015 at 1:51 PM
Maybe you use some kind of Debugview.


if i disable my debugView then there is no white Line.

I've got another question.

Did you port the waveController in 3.5 or just use an older version.
Currently i work on a Pirategame with Water. The BuoyancyController works but in 3.5 i can't find a waveController.
i really could need Liquid like u have.

Maybe my Solution helps you with you're problem.
Static Water but no whiteline.
        Vector2 WaterCentre = new Vector2(0, 0);
        float WaterWidth = 100;
        float WaterHeight = 5;

        Water = new Rectangle((int)WaterCentre.X, (int)WaterCentre.Y, (int)WaterWidth, (int)WaterHeight);
        container = new AABB(WaterCentre, WaterWidth, WaterHeight);
        buoyancy = new BuoyancyController(container, 2, 2, 1, world.Gravity);