mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed drop error. added carrier velocity
This commit is contained in:
parent
7aa417dfc8
commit
197c4072c1
3 changed files with 23 additions and 9 deletions
|
|
@ -359,7 +359,12 @@ function (Parent, Box2D, Settings, CollisionDetector, Item, Nc) {
|
|||
this.holdingJoint = null;
|
||||
this.holdingItem = null;
|
||||
|
||||
item.throw(options);
|
||||
var dollVelocity = {
|
||||
x: this.body.GetLinearVelocity().x
|
||||
y: this.body.GetLinearVelocity().y
|
||||
};
|
||||
|
||||
item.throw(options, dollVelocity);
|
||||
};
|
||||
|
||||
Doll.prototype.isAnotherPlayerNearby = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue