Box2DX.Dynamics.Controllers.BuoyancyController.Draw C# (CSharp) Method

Draw() public method

public Draw ( DebugDraw debugDraw ) : void
debugDraw DebugDraw
return void
        public override void Draw(DebugDraw debugDraw)
        {
            float r = 1000;
            Vec2 p1 = offset * normal + Vec2.Cross(normal, r);
            Vec2 p2 = offset * normal - Vec2.Cross(normal, r);

            Color color = new Color(0,0,0.8f);

            debugDraw.DrawSegment(p1, p2, color);
        }