mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed #52
This commit is contained in:
parent
0405910c7a
commit
fa1a3f3757
2 changed files with 3 additions and 3 deletions
|
|
@ -121,8 +121,8 @@ function (Parent, Box2D, Options, Settings) {
|
|||
body.SetAwake(true);
|
||||
|
||||
var vector = new Box2D.Common.Math.b2Vec2(
|
||||
x * Settings.MAX_THROW_FORCE,
|
||||
-y * Settings.MAX_THROW_FORCE * 1.5 // 1.5 is to throw higher then far
|
||||
x * Settings.MAX_THROW_FORCE / this.options.weight,
|
||||
-y * Settings.MAX_THROW_FORCE * 1.5 / this.options.weight // 1.5 is to throw higher then far
|
||||
);
|
||||
this.body.SetLinearVelocity(vector);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue