Use typed hull facets in motion consumers

This commit is contained in:
Meta Vens 2026-06-14 05:15:18 +01:00
commit 64214c5dd8
7 changed files with 34 additions and 14 deletions

View file

@ -284,7 +284,7 @@ public class Ship : Entity
var velocityMagnitude = length(Velocity);
if(velocityMagnitude > .01f)
Velocity = normalize(Velocity) * AetheriaMath.Decay(velocityMagnitude, HullData.Drag, delta);
Velocity = normalize(Velocity) * AetheriaMath.Decay(velocityMagnitude, (float)(ItemManager.GetRuntimeItem(Hull)?.HullDrag ?? 0), delta);
Position.xz += Velocity * delta;