mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
destroying doll body on kill, fixes #66
This commit is contained in:
parent
24e179f3b2
commit
ef98b9dd28
2 changed files with 3 additions and 2 deletions
|
|
@ -36,9 +36,9 @@ define(function() {
|
||||||
MAX_THROW_FORCE: 18 * 3.5,
|
MAX_THROW_FORCE: 18 * 3.5,
|
||||||
MAX_THROW_ANGULAR_VELOCITY: 0,
|
MAX_THROW_ANGULAR_VELOCITY: 0,
|
||||||
MAX_RUNNING_WEIGHT: 9,
|
MAX_RUNNING_WEIGHT: 9,
|
||||||
RESPAWN_TIME: 512,
|
RESPAWN_TIME: 5,
|
||||||
HEALTH_DISPLAY_TIME: 2,
|
HEALTH_DISPLAY_TIME: 2,
|
||||||
RAGDOLL_DESTRUCTION_TIME: 250,
|
RAGDOLL_DESTRUCTION_TIME: 20,
|
||||||
|
|
||||||
// restitution: bouncyness, friction: rubbing, density: mass
|
// restitution: bouncyness, friction: rubbing, density: mass
|
||||||
TILE_FRICTION: 0.99,
|
TILE_FRICTION: 0.99,
|
||||||
|
|
|
||||||
|
|
@ -442,6 +442,7 @@ function (Parent, Box2D, Settings, CollisionDetector, Item, Nc) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Doll.prototype.destroy = function() {
|
Doll.prototype.destroy = function() {
|
||||||
|
Parent.prototype.destroy.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
return Doll;
|
return Doll;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue