Skip to content

Commit

Permalink
kicker: Fix z-position when moving during runtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
freezy committed Jan 1, 2025
1 parent 4fd581e commit a827019
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public override void OnTransformationChanged(float4x4 currTransformationMatrix)
// update kicker center, so the internal collision shape is correct
ref var kickerData = ref PhysicsEngine.KickerState(ItemId);
kickerData.Static.Center = currTransformationMatrix.c3.xy;
kickerData.Static.ZLow = currTransformationMatrix.c3.z;
}
}
}

0 comments on commit a827019

Please sign in to comment.