mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-12 02:57:34 +00:00
Complete Box2D to Planck.js migration
- Replace Box2D.js with Planck.js physics engine - Update all require paths from 'Lib/Vendor/Box2D' to 'Lib/Vendor/Planck' - Convert Box2D contact listeners to Planck.js event system - Fix all method name capitalization (Get* -> get*, Set* -> set*) - Update collision detection system for Planck.js compatibility - Server now starts successfully and basic physics working - Character can land on platforms - core physics functional Major milestone: Game now running on modern, maintained physics engine
This commit is contained in:
parent
875abd60d9
commit
dc779def9c
43 changed files with 701 additions and 14524 deletions
|
|
@ -51,11 +51,11 @@ function (planck, Exception, Assert, nc) {
|
|||
Assert.number(update.lv.x, update.lv.y);
|
||||
Assert.number(update.av);
|
||||
|
||||
this.body.SetAwake(true);
|
||||
this.body.SetPosition(update.p);
|
||||
this.body.SetAngle(update.a);
|
||||
this.body.SetLinearVelocity(update.lv);
|
||||
this.body.SetAngularVelocity(update.av);
|
||||
this.body.setAwake(true);
|
||||
this.body.setPosition(update.p);
|
||||
this.body.setAngle(update.a);
|
||||
this.body.setLinearVelocity(update.lv);
|
||||
this.body.setAngularVelocity(update.av);
|
||||
};
|
||||
|
||||
return GameObject;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue