commit sum more bs
Some checks failed
Build Project / build (push) Has been cancelled

This commit is contained in:
swim67667
2026-06-24 00:49:30 -04:00
parent b7fef7bee3
commit 78597f14c0
2 changed files with 5 additions and 5 deletions

View File

@@ -7,19 +7,19 @@
void checkCollision(){ void checkCollision(){
for(int u=0; u<=MAX_ENTITIES; u++){ for(int u=0; u<=MAX_ENTITIES; u++){
Entity *en1 = &entities[u]; Entity *en1 = &entities[u];
for(int j=0; u<=MAX_ENTITIES; u++){ for(int j=0; j<=MAX_ENTITIES; j++){
if(u!=j){ if(u!=j){
Entity *en2 = &entities[j]; Entity *en2 = &entities[j];
if(en1->position.x<en2->position.x){ //if(en1->position.x>en2->position.x){
ApplyForce( ApplyForce(
en1, en1,
(Vector2){10000, 0} (Vector2){100000, 0}
); );
ApplyForce( ApplyForce(
en2, en2,
(Vector2){-10000, 0} (Vector2){-100000, 0}
); );
} //}
} }
} }
} }

BIN
wrldbox Executable file

Binary file not shown.