mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added ASSERT, fixed #103
This commit is contained in:
parent
55eff36f34
commit
dfa71bc8e5
17 changed files with 249 additions and 153 deletions
|
|
@ -2,10 +2,11 @@ define([
|
|||
"Game/" + GLOBALS.context + "/GameObjects/Item",
|
||||
"Lib/Vendor/RubeLoader",
|
||||
"Lib/Vendor/Box2D",
|
||||
"Game/Config/Settings"
|
||||
"Game/Config/Settings",
|
||||
"Lib/Utilities/Assert"
|
||||
],
|
||||
|
||||
function (Parent, RubeLoader, Box2D, Settings ) {
|
||||
function (Parent, RubeLoader, Box2D, Settings, Assert) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
@ -13,6 +14,7 @@ function (Parent, RubeLoader, Box2D, Settings ) {
|
|||
var __ragdollJson;
|
||||
|
||||
function Rube(physicsEngine, uid, options) {
|
||||
Assert.number(options.x, options.y);
|
||||
|
||||
this.rubeLoader = null;
|
||||
this.body = null;
|
||||
|
|
@ -1398,7 +1400,7 @@ function (Parent, RubeLoader, Box2D, Settings ) {
|
|||
"subStepping" : false,
|
||||
"velocityIterations" : 8,
|
||||
"warmStarting" : true
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue