Fix remaining capitalized Box2D method calls using sed

- Convert GetWorld() → getWorld()
- Convert CreateJoint() → createJoint()
- Convert DestroyJoint() → destroyJoint()
- Convert CreateBody() → createBody()
- Convert DestroyBody() → destroyBody()
- Convert GetFriction() → getFriction()
- Convert SetFriction() → setFriction()
- Convert GetBodyList() → getBodyList()
- Convert GetNext() → getNext()
- Convert GetContactList() → getContactList()
- Convert GetFixtureList() → getFixtureList()

Applied bulk sed replacements across all game files to complete
Box2D to Planck.js migration method name conversion.
This commit is contained in:
Karl Pannek 2025-07-16 15:16:30 +02:00
parent dc779def9c
commit 55089d56cb
6 changed files with 50 additions and 50 deletions

View file

@ -129,7 +129,7 @@ function (Parent, PhysicsEngine, Settings, requestAnimFrame, nc, Box2D, Player,
var update = {};
/*
var body = this.physicsEngine.world.GetBodyList();
var body = this.physicsEngine.world.getBodyList();
do {
if((getSleeping || body.isAwake()) && body.getType() === 'dynamic') {
var userData = body.getUserData();
@ -144,7 +144,7 @@ function (Parent, PhysicsEngine, Settings, requestAnimFrame, nc, Box2D, Player,
}
}
} while (body = body.GetNext());
} while (body = body.getNext());
*/
for (var uid in this.worldUpdateObjects) {