Skip to content

Commit

Permalink
[#133] Height-calculation adjustments - (small correction)
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielxs01 committed Feb 29, 2024
1 parent 6b47d9d commit 56186ca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ private static void cacheFlare(Flare flare, String flareId, OBJModel model, Stri
Vec3d centerOfLightFlare = model.centerOfGroups(flareGroups.keySet());
Vec3d modelOffset = centerOfLightFlare.subtract(centerOfModel);
modelOffset = new Vec3d(modelOffset.x, modelOffset.y, -modelOffset.z - flareOffset);
Vec3d flareCenterOffset = new Vec3d(modelTranslation[0], modelTranslation[1], modelTranslation[2]);
float yCorrection = 0.5f;
Vec3d flareCenterOffset = new Vec3d(modelTranslation[0], modelTranslation[1] + yCorrection, modelTranslation[2]);
Vec3d combinedOffset = flareCenterOffset.add(modelOffset);

//
Expand Down

0 comments on commit 56186ca

Please sign in to comment.