diff --git a/content/pong/ball/bouncing/motion_engine.md b/content/pong/ball/bouncing/motion_engine.md index b501be7..f4726a4 100644 --- a/content/pong/ball/bouncing/motion_engine.md +++ b/content/pong/ball/bouncing/motion_engine.md @@ -83,6 +83,9 @@ Next, in a separate block, let's consolidate our MotionMessages per Entity. ... + _spatialHash.Clear(); + _moveAmounts.Clear(); + foreach (var entity in TrackedEntities) { ... @@ -235,7 +238,7 @@ Now, in the final block of our **MotionEngine**, we can perform our collision te { ... } - + foreach (ref readonly var entity in ReadEntities()) { ...