Skip to content

Commit

Permalink
doomed to repeat past mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoGarbage404 committed Jun 29, 2024
1 parent a77bdd9 commit 907c551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Robust.Shared/Physics/Systems/SharedPhysicsSystem.Island.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ internal record struct IslandData(
private const int PositionConstraintsPerThread = 16;

[ByRefEvent]
public struct GetLinearDampingOverrideEvent(Entity<PhysicsComponent> Entity)
public struct GetLinearDampingOverrideEvent(Entity<PhysicsComponent, TransformComponent> Entity)
{
public float? LinearDampingOverride;
}
Expand Down Expand Up @@ -759,7 +759,7 @@ private void SolveIsland(

angularVelocity += body.InvI * body.Torque * data.FrameTime;

var ev = new GetLinearDampingOverrideEvent((body.Owner, body));
var ev = new GetLinearDampingOverrideEvent((body.Owner, body, xform));
OnGetLinearDampingOverride?.Invoke(ref ev);
var linearDamping = ev.LinearDampingOverride ?? body.LinearDamping;

Expand Down

0 comments on commit 907c551

Please sign in to comment.