mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
changed linear interpolation to nearest and added rube ragdoll with testbed in lab
This commit is contained in:
parent
47bb5ef147
commit
86063661db
28 changed files with 31671 additions and 2 deletions
26
lab/rube/js/jackinthebox.js
Normal file
26
lab/rube/js/jackinthebox.js
Normal 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.";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue