forgot to mention clearing the moveamounts
continuous-integration/drone/push Build is passing Details

main
Evan Hemsley 2020-07-27 14:07:48 -07:00
parent 9af2d23569
commit 112bf56c88
1 changed files with 4 additions and 1 deletions

View File

@ -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) 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<PositionComponent>()) foreach (ref readonly var entity in ReadEntities<PositionComponent>())
{ {
... ...