@Override public void draw(GL3 gl) { renderer.pushMatrix(gl); renderer.translate(gl, px, py, pz); renderer.rotate(gl, phi, rx, ry, rz); cub.draw(gl); renderer.popMatrix(gl); }
@Override public void update(double dt) { setZ(getZ() + getSpeed() * dt * renderer.getSpeedMultiplication()); setRotAngle(getRotAngle() + getRotSpeed() * dt); }