Forward, before any rotation, obviously, is +y. But the ship's rotation around z is precisely what shouldn't change in the new matrix.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
if (shipLeveling == 10) {
lastRotation = plane.getRotationMatrix();
shipLeveling = 0;
}
Matrix softMatrix = ship.getRotationMatrix();
lastRotation.interpolate(lastRotation, softMatrix, 0.1f);// interpolate between the matrices
Matrix matrix = new Matrix(lastRotation);
ship.setRotationMatrix(matrix);
shipLeveling++;
Page created in 0.022 seconds with 9 queries.