another little addition for clarity
continuous-integration/drone/push Build is passing Details

main
Evan Hemsley 2020-07-27 14:16:44 -07:00
parent 57fb02daf2
commit 37fe31c9d6
1 changed files with 1 additions and 1 deletions

View File

@ -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.