libgdx intersection problem between rectangle and circle
- by Chris
My collision detection in libgdx is somehow buggy.
player.png is 20*80px and ball.png 25*25px.
Code:
@Override
public void create() {
// ...
batch = new SpriteBatch();
playerTex = new Texture(Gdx.files.internal("data/player.png"));
ballTex = new Texture(Gdx.files.internal("data/ball.png"));
player = new Rectangle();
…