Skip to content

Commit

Permalink
Tests - simplify BoostedQuery() example
Browse files Browse the repository at this point in the history
  • Loading branch information
friflo committed Aug 10, 2024
1 parent 8f2be4f commit 7d5295e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tests/ECS/Examples/Optimization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static void BoostedQuery()
{
var store = new EntityStore();
for (int n = 0; n < 100; n++) {
store.CreateEntity(new Position(n, 0, 0), new Velocity{ value = new Vector3(0, n, 0)});
store.CreateEntity(new Position(), new Velocity());
}
var query = store.Query<Position, Velocity>();
query.Each(new MoveEach()); // requires https://www.nuget.org/packages/Friflo.Engine.ECS.Boost
Expand Down

0 comments on commit 7d5295e

Please sign in to comment.