Daniele Bartolini 9 лет назад
Родитель
Сommit
a140b29d04
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      samples/01-physics/core/unit_preview/unit_preview.lua

+ 1 - 0
samples/01-physics/core/unit_preview/unit_preview.lua

@@ -23,6 +23,7 @@ function UnitPreview:update(dt)
 			local tm, hext = RenderWorld.mesh_obb(self._rw, meshes[1])
 
 			local radius = Vector3.length(hext)
+			radius = math.ceil(radius / 4)  * 4
 			radius = radius <   1 and   1 or radius
 			radius = radius > 100 and 100 or radius