Use typed hull facets in motion consumers
This commit is contained in:
parent
710a98bc8d
commit
64214c5dd8
7 changed files with 34 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue