mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
implemented rubedoll direction flip and added meshIndex (z) swapping capability. #151
This commit is contained in:
parent
da7e0758bb
commit
fb3ac40d17
12 changed files with 483 additions and 389 deletions
|
|
@ -129,22 +129,23 @@ function (Doll, Settings, Nc, Exception, ColorConverter, SpectatorDoll, RubeDoll
|
|||
image: "chest.png",
|
||||
name: "RagDoll",
|
||||
rotation: 0,
|
||||
type: "ragdoll",
|
||||
type: "rubedoll",
|
||||
weight: 3,
|
||||
width: 5,
|
||||
height: 12,
|
||||
primaryColor: primaryColor
|
||||
primaryColor: primaryColor,
|
||||
direction: this.doll.lookDirection
|
||||
};
|
||||
|
||||
var ragDoll = new RubeDoll(this.physicsEngine, "ragDoll-" + this.id + "-" + ragDollId, options);
|
||||
ragDoll.setVelocities(this.doll.getVelocities());
|
||||
var rubeDoll = new RubeDoll(this.physicsEngine, "rubeDoll-" + this.id + "-" + ragDollId, options);
|
||||
rubeDoll.setVelocities(this.doll.getVelocities());
|
||||
|
||||
this.spawned = false;
|
||||
|
||||
this.doll.destroy();
|
||||
this.doll = null;
|
||||
|
||||
this.ragDoll = ragDoll;
|
||||
this.ragDoll = rubeDoll;
|
||||
};
|
||||
|
||||
Player.prototype.update = function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue