몸의 회전으로 볼 텍스처를 회전 시키려고하는데, 내가 뭘 잘못하고 있는지 알 수 없습니다.Circlshape와 Body로 텍스처 회전하기
여기 추첨 방법
@Override
public void draw(Batch batch, float parentAlpha) {
super.draw(batch, parentAlpha);
sprite.setSize((Gdx.graphics.getWidth()/10), (Gdx.graphics.getWidth()/10));
sprite.setPosition(body.getPosition().x - sprite.getWidth()/2, body.getPosition().y -sprite.getHeight()/2);
sprite.setRotation(body.getAngle()* MathUtils.radiansToDegrees);
sprite.setOrigin(sprite.getWidth()/2, sprite.getHeight()/2);
sprite.draw(batch);
}
몸이 회전 내 코드이지만, 질감하지 않습니다.
설명해 주셔서 감사합니다. 문제는 신체의 마찰과 각진 력에 있었고, 둘 다 0.0f였습니다. – niarb