mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Makes world in Engine private
And some refactoring.
This commit is contained in:
parent
8641a2dc0b
commit
c068592915
3 changed files with 12 additions and 14 deletions
|
|
@ -14,7 +14,7 @@ function (Box2D, Exception, Assert, Nc) {
|
|||
|
||||
var def = this.getBodyDef();
|
||||
def.userData = this;
|
||||
this.body = physicsEngine.getWorld().CreateBody(def);
|
||||
this.body = physicsEngine.createBody(def);
|
||||
|
||||
this.ncTokens = (this.ncTokens || []).concat([
|
||||
Nc.on(Nc.ns.client.game.events.destroy, this.destroy, this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue