From 37fe31c9d63f559758b9e186403d8207659ed45d Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Mon, 27 Jul 2020 14:16:44 -0700 Subject: [PATCH] another little addition for clarity --- content/pong/ball/bouncing/motion_engine.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/pong/ball/bouncing/motion_engine.md b/content/pong/ball/bouncing/motion_engine.md index 4e0e205..3378852 100644 --- a/content/pong/ball/bouncing/motion_engine.md +++ b/content/pong/ball/bouncing/motion_engine.md @@ -108,7 +108,7 @@ Next, in a separate block, let's consolidate our MotionMessages per Entity. This is where our *IHasEntity* optimization comes in. It allows us to use the **ReadMessagesWithEntity** method. This method efficiently queries messages that refer to the given entity. {{% notice note %}} -Up until now we have only used one **foreach** block in our Engines, but in this case it's better to split up the logic into multiple **foreach** blocks. Sometimes you will need to do this. +Up until now we have only used one **foreach** block in our Engines, but in this case it's better to split up the logic into multiple **foreach** blocks. Why? Because everything needs to be inserted into the SpatialHash before we can properly check for collisions. Sometimes you will need to do organize things this way. {{% /notice %}} Finally, let's implement our sweep test.