[#2242] Remove double translation to root center

This commit is contained in:
SiboVG 2023-07-01 18:28:00 +02:00
parent 0d0fdbf3ef
commit 103a981bca

View File

@ -39,13 +39,10 @@ public class FinRenderer {
{
gl.glPushMatrix();
gl.glTranslated(finSet.getLength() / 2, 0, 0);
gl.glTranslated(0, - finSet.getBodyRadius(), 0);
gl.glTranslated(0, - finSet.getBodyRadius(), 0); // Move to the rocket centerline
gl.glRotated( Math.toDegrees(finSet.getCantAngle()), 0, 1, 0);
gl.glTranslated(-finSet.getLength() / 2, 0, 0);
GLUtessellatorCallback cb = new GLUtessellatorCallbackAdapter() {
@Override