mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
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:
parent
dc779def9c
commit
55089d56cb
6 changed files with 50 additions and 50 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue