change shapeType to use strings in billiards.js

This commit is contained in:
Andrew Meadows 2015-02-23 11:42:36 -08:00
parent 456acd8833
commit f2fc781523

View file

@ -122,7 +122,7 @@ function makeBalls(pos) {
gravity: { x: 0, y: GRAVITY, z: 0 },
ignoreCollisions: false,
damping: 0.50,
shapeType: 2,
shapeType: "sphere",
collisionsWillMove: true }));
ballPosition.z += (BALL_SIZE + BALL_GAP) * SCALE;
ballNumber++;
@ -143,7 +143,7 @@ function makeBalls(pos) {
velocity: {x: 0, y: 0, z: 0 },
ignoreCollisions: false,
damping: 0.50,
shapeType: 2,
shapeType: "sphere",
collisionsWillMove: true });
}