Hover unit stuff

This commit is contained in:
Anuken
2022-04-30 23:00:35 -04:00
parent f833a4e1bb
commit 25208d0797
11 changed files with 99 additions and 14 deletions

View File

@@ -444,7 +444,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
if(trail != null){
trail.length = type.trailLength;
float scale = elevation;
float scale = type.useEngineElevation ? elevation : 1f;
float offset = type.engineOffset/2f + type.engineOffset/2f*scale;
float cx = x + Angles.trnsx(rotation + 180, offset), cy = y + Angles.trnsy(rotation + 180, offset);