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
|
|
@ -9,10 +9,10 @@ define([
|
|||
"Game/Channel/Player",
|
||||
"Game/Channel/GameObjects/GameObject",
|
||||
"Game/Channel/GameObjects/Doll",
|
||||
"Game/Channel/GameObjects/Items/RagDoll"
|
||||
"Game/Channel/GameObjects/Items/RubeDoll"
|
||||
],
|
||||
|
||||
function (Parent, PhysicsEngine, Settings, PlayerController, requestAnimFrame, Nc, Box2D, Player, GameObject, Doll, RagDoll) {
|
||||
function (Parent, PhysicsEngine, Settings, PlayerController, requestAnimFrame, Nc, Box2D, Player, GameObject, Doll, RubeDoll) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
@ -172,7 +172,7 @@ function (Parent, PhysicsEngine, Settings, PlayerController, requestAnimFrame, N
|
|||
var objects = [];
|
||||
|
||||
for (var i = 0; i < this.gameObjects.animated.length; i++) {
|
||||
if(this.gameObjects.animated[i] instanceof RagDoll) {
|
||||
if(this.gameObjects.animated[i] instanceof RubeDoll) {
|
||||
var object = this.gameObjects.animated[i];
|
||||
var options = object.options;
|
||||
options.x = object.getPosition().x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue