Fix hologram rotation smoothing

This commit is contained in:
LeshaInc 2023-06-18 21:36:00 +03:00
parent e36fee71db
commit a6f04e28f7
No known key found for this signature in database
GPG Key ID: 7F51850974C1C795

View File

@ -148,7 +148,7 @@ class HologramProjectorWindow(val hologramProjectorNode: HologramProjectorNode)
mesh.foreach(mesh => {
val workspace = hologram.workspace
val subTick = (System.nanoTime() - workspace.getLastTickNanoTime).toFloat / 1e9f / OcelotDesktop.tpsCounter.dt.min(1e-9f)
val subTick = (System.nanoTime() - workspace.getLastTickNanoTime).toFloat / 1e9f / OcelotDesktop.tpsCounter.dt.max(1e-9f)
val time = workspace.getIngameTime + subTick.clamp(0, 1)
var transform = Transform3D.translate(0.5f, 0.5f, 0.5f) *