i am trying to get collision detection and when i do the code below in the update method. to check if it is going to work. the position is not in the right place. the red rectangle is in the middle and not at the x and y point???
aim.set(getX(), getY(), getOriginX(), getOriginY());
this is for the render
shapeRenderer.begin(ShapeType.Filled);
shapeRenderer.setColor(Color.RED);
shapeRenderer.rect(bullet.getX(), bullet.getY(), bullet.getOriginX(), bullet.getOriginY(), 15, 5, bullet.getRotation());
shapeRenderer.end();