문제

I couldn't find any detailed documentation to the method rect in ShapeRenderer in LibGDX.

ShapeRenderer.rect(x, y, width, height, originX, originY, rotation)

Most of the arguments are obvious, but putting anything into originX/Y ends up with the same result.

So, what does originX/Y actually do?

도움이 되었습니까?

해결책

It determines around which point the rotation will occur.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top