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
|
|
@ -33,7 +33,7 @@ define(function() {
|
|||
FLY_SPEED: 6.2,
|
||||
JUMP_SPEED: 20,
|
||||
JUMP_STOP_DAMPING_FACTOR: 0.5,
|
||||
MAX_THROW_FORCE: 18,
|
||||
MAX_THROW_FORCE: 18 * 3.5,
|
||||
MAX_THROW_ANGULAR_VELOCITY: 0,
|
||||
MAX_RUNNING_WEIGHT: 9,
|
||||
RESPAWN_TIME: 6,
|
||||
|
|
|
|||
|
|
@ -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