mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
implemented clientReady and changed loading of assets, fixed unique ragdoll id
This commit is contained in:
parent
f578b92734
commit
695008afd8
278 changed files with 306 additions and 287 deletions
|
|
@ -10,6 +10,7 @@ function (Parent, Box2D, Settings, CollisionDetector, Item) {
|
|||
|
||||
function Doll (physicsEngine, uid, player) {
|
||||
|
||||
this.characterName = "Chuck";
|
||||
this.player = player;
|
||||
this.height = 43;
|
||||
this.width = 9;
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ function (Parent, Box2D, Options, Settings) {
|
|||
|
||||
var vector = new Box2D.Common.Math.b2Vec2(
|
||||
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
|
||||
-y * Settings.MAX_THROW_FORCE / this.options.weight
|
||||
);
|
||||
this.body.SetLinearVelocity(vector);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue