another little addition for clarity
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
57fb02daf2
commit
37fe31c9d6
|
@ -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.
|
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 %}}
|
{{% 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 %}}
|
{{% /notice %}}
|
||||||
|
|
||||||
Finally, let's implement our sweep test.
|
Finally, let's implement our sweep test.
|
||||||
|
|
Loading…
Reference in New Issue