Skip to content

Commit 9198829

Browse files
committed
update how chunks are interacted with
1 parent 52bddd2 commit 9198829

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/Systems/PhysicsSystem.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private void ApplyPointGravity(double deltaTime)
158158
for (int c = 0; c < chunks.Length; c++)
159159
{
160160
Chunk chunk = chunks[c];
161-
if (chunk.IsEnabled && chunk.componentTypes.ContainsAll(pointGravityComponents))
161+
if (chunk.IsEnabled && chunk.ComponentTypes.ContainsAll(pointGravityComponents))
162162
{
163163
ComponentEnumerator<IsGravitySource> gravitySources = chunk.GetComponents<IsGravitySource>(gravitySourceType);
164164
ComponentEnumerator<LocalToWorld> ltws = chunk.GetComponents<LocalToWorld>(ltwType);
@@ -178,7 +178,7 @@ private void ApplyPointGravity(double deltaTime)
178178
for (int c = 0; c < chunks.Length; c++)
179179
{
180180
Chunk chunk = chunks[c];
181-
if (chunk.IsEnabled && chunk.componentTypes.ContainsAll(bodyComponents))
181+
if (chunk.IsEnabled && chunk.ComponentTypes.ContainsAll(bodyComponents))
182182
{
183183
int entityCount = chunk.Count;
184184
ComponentEnumerator<IsBody> bodies = chunk.GetComponents<IsBody>(bodyType);
@@ -227,7 +227,7 @@ private void AddMissingComponents()
227227
for (int c = 0; c < chunks.Length; c++)
228228
{
229229
Chunk chunk = chunks[c];
230-
if (chunk.componentTypes.Contains(bodyType) && !chunk.componentTypes.ContainsAny(dynamicComponentTypes))
230+
if (chunk.ComponentTypes.Contains(bodyType) && !chunk.ComponentTypes.ContainsAny(dynamicComponentTypes))
231231
{
232232
ComponentEnumerator<IsBody> bodies = chunk.GetComponents<IsBody>(bodyType);
233233
int entityCount = chunk.Count;
@@ -596,7 +596,7 @@ private Vector3 GetGlobalGravity()
596596
for (int c = 0; c < chunks.Length; c++)
597597
{
598598
Chunk chunk = chunks[c];
599-
if (!chunk.IsDisabled && chunk.tagTypes.Contains(directionalGravityTag) && chunk.componentTypes.ContainsAll(componentTypes))
599+
if (!chunk.IsDisabled && chunk.TagTypes.Contains(directionalGravityTag) && chunk.ComponentTypes.ContainsAll(componentTypes))
600600
{
601601
ComponentEnumerator<IsGravitySource> gravitySources = chunk.GetComponents<IsGravitySource>(gravitySourceType);
602602
ComponentEnumerator<LocalToWorld> ltws = chunk.GetComponents<LocalToWorld>(ltwType);

0 commit comments

Comments
 (0)