changed linear interpolation to nearest and added rube ragdoll with testbed in lab

This commit is contained in:
logsol 2014-02-16 23:00:01 +01:00
parent 47bb5ef147
commit 86063661db
28 changed files with 31671 additions and 2 deletions

View file

@ -0,0 +1,26 @@
var jackinthebox = function() {
//constructor
}
jackinthebox.prototype.setNiceViewCenter = function() {
//called once when the user changes to this test from another test
PTM = 70;
setViewCenterWorld( new b2Vec2(0, 10.5), true );
}
jackinthebox.prototype.setup = function() {
//set up the Box2D scene here - the world is already created
if ( loadSceneFromRUBE(jack_scene) ) //jack_scene is defined in jack-min.js
console.log("RUBE scene loaded successfully.");
else
console.log("Failed to load RUBE scene");
doAfterLoading();
}
jackinthebox.prototype.getComments = function(canvas, evt) {
return "Created in R.U.B.E editor. Pull the latch to the side to open the box.";
}