Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

How can I remove the outline on the CircleShape below?

CircleShape circle = new CircleShape();
circle.setRadius(1f);

This is what I'm using to draw:

batch.draw(textureRegion, position.x - 1, position.y - 1, 1f, 1f, 2, 2, 1, 1, angle);

I use this to set the body for a Box2d collision but I get a silly circle shape around my texture in libGdx. My textured sprite (ball) has a circle over the top of it with a line running from center along the radius.

Any ideas on how to remove the overlying circle lines?

share|improve this question
    
It sounds like you are using the DebugRenderer? Can you post your full code? –  Rubber Mallet Apr 9 '12 at 16:00
    
Instead of full code, just post the relevant parts. –  Byte56 Apr 9 '12 at 16:02
    
Yes using DebugRenderer but thought can use debugDisable somwhere? –  Brett Apr 9 '12 at 16:10
    
RubberMallet - nice one, was using the demo code example... this was the culprit.. debugRenderer.render(world, camera.combined); –  Brett Apr 9 '12 at 16:18
1  
@Brett you should mark that as an answer. –  Tetrad Apr 9 '12 at 16:53
show 1 more comment

1 Answer

It sounds like you are using the DebugRenderer which would cause the outline.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.