سؤال

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