Yes, I know this, but is it not possible to do this without to add the deltaTime to the movemet variable?
My project looks like this:
public class ObjectScreen implements Screen {
Game game;
public ObjectScreen (Game game) {
this.game = game;
cam = new PerspectiveCamera(45, VIRTUAL_WIDTH, VIRTUAL_HEIGHT);
...
}
...
@Override
public void render (float delta) {
update(delta);
draw(delta);
}
public void update (float deltaTime) {
// ...
}
public void draw (float deltaTime) {
if (deltaTime > 0.1f) deltaTime = 0.1f;
GL10 gl = Gdx.graphics.getGL10();
gl.glClearColor(0.0f, 0.0f, 0.0f, 1);
gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
...
// 3d Object moving
...
}
}