mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
made fast objects bullets, fixes #126
This commit is contained in:
parent
f9d97c5a47
commit
46f14c22c6
2 changed files with 4 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ function () {
|
||||||
"category": "kitchen",
|
"category": "kitchen",
|
||||||
"image": "banana.gif",
|
"image": "banana.gif",
|
||||||
|
|
||||||
"weight": "1",
|
"weight": "3",
|
||||||
"width": "5",
|
"width": "5",
|
||||||
"height": "9",
|
"height": "9",
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,9 @@ function (Parent, Box2D, Options, Settings, Exception, Nc, Assert) {
|
||||||
this.createFixture();
|
this.createFixture();
|
||||||
this.body.ResetMassData();
|
this.body.ResetMassData();
|
||||||
this.flipDirection = 1;
|
this.flipDirection = 1;
|
||||||
|
if (this.body.GetMass() < 1) {
|
||||||
|
this.body.SetBullet(true);
|
||||||
|
}
|
||||||
|
|
||||||
Nc.trigger(Nc.ns.core.game.gameObject.add, "animated", this);
|
Nc.trigger(Nc.ns.core.game.gameObject.add, "animated", this);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue