rename linearDamping to damping

This commit is contained in:
James B. Pollack 2015-11-20 15:45:08 -08:00
parent 5d75fcbfce
commit aba65bd9b8
10 changed files with 24 additions and 24 deletions

View file

@ -271,7 +271,7 @@ function loadBirds(howMany) {
dimensions: { x: BIRD_SIZE, y: BIRD_SIZE, z: BIRD_SIZE },
gravity: { x: 0, y: BIRD_GRAVITY, z: 0 },
velocity: { x: 0, y: -0.1, z: 0 },
linearDamping: LINEAR_DAMPING,
damping: LINEAR_DAMPING,
collisionsWillMove: true,
lifetime: STARTING_LIFETIME,
color: colors[whichBird]

View file

@ -76,7 +76,7 @@ var playerSphere = Entities.addEntity({
z: 0
},
collisionsWillMove: true,
linearDamping: 0.2
damping: 0.2
});
Script.setInterval(function(){

View file

@ -41,7 +41,7 @@ var rack = Entities.addEntity({
y: -9.8,
z: 0
},
linearDamping: 1,
damping: 1,
dimensions: {
x: 0.4,
y: 1.37,
@ -83,7 +83,7 @@ function createBalls() {
z: DIAMETER
},
restitution: 1.0,
linearDamping: 0.00001,
damping: 0.00001,
gravity: {
x: 0,
y: -9.8,

View file

@ -46,7 +46,7 @@ function makeBasketball() {
collisionSoundURL: collisionSoundURL,
modelURL: basketballURL,
restitution: 1.0,
linearDamping: 0.00001,
damping: 0.00001,
shapeType: "sphere"
});
originalPosition = position;

View file

@ -88,7 +88,7 @@ var topBlock = Entities.addEntity({
dimensions: blockDimensions,
position: topBlock_position,
rotation: topBlock_rotation,
linearDamping: LINEAR_DAMPING,
damping: LINEAR_DAMPING,
gravity: BLOCK_GRAVITY,
collisionsWillMove: true,
velocity: {
@ -106,7 +106,7 @@ var sideBlock1 = Entities.addEntity({
dimensions: blockDimensions,
position: sideBlock1_position,
rotation: sideBlock1_rotation,
linearDamping: LINEAR_DAMPING,
damping: LINEAR_DAMPING,
gravity: BLOCK_GRAVITY,
collisionsWillMove: true
});
@ -120,7 +120,7 @@ var sideBlock2 = Entities.addEntity({
position: sideBlock2_position,
rotation: sideBlock2_rotation,
collsionsWillMove: true,
linearDamping: LINEAR_DAMPING,
damping: LINEAR_DAMPING,
gravity: BLOCK_GRAVITY,
collisionsWillMove: true
});

View file

@ -28,7 +28,7 @@
var BUBBLE_LIFETIME_MAX = 8;
var BUBBLE_SIZE_MIN = 0.02;
var BUBBLE_SIZE_MAX = 0.1;
var BUBBLE_LINEAR_DAMPING = 0.4;
var BUBBLE_LINEAR_DAMPING = 0.2;
var BUBBLE_GRAVITY_MIN = 0.1;
var BUBBLE_GRAVITY_MAX = 0.3;
var GROWTH_FACTOR = 0.005;
@ -163,7 +163,7 @@
dimensions: BUBBLE_INITIAL_DIMENSIONS,
collisionsWillMove: false,
ignoreForCollisions: true,
linearDamping: BUBBLE_LINEAR_DAMPING,
damping: BUBBLE_LINEAR_DAMPING,
shapeType: "sphere"
});

View file

@ -123,7 +123,7 @@
type:'Sphere',
color: BALL_COLOR,
dimensions: BALL_DIMENSIONS,
linearDamping: BALL_LINEAR_DAMPING,
damping: BALL_LINEAR_DAMPING,
gravity: BALL_GRAVITY,
restitution: BALL_RESTITUTION,
collisionsWillMove: true,

View file

@ -75,7 +75,7 @@ var HIFI_PUBLIC_BUCKET = "http://s3.amazonaws.com/hifi-public/";
z: DIAMETER
},
restitution: 1.0,
linearDamping: 0.00001,
damping: 0.00001,
gravity: {
x: 0,
y: -9.8,

View file

@ -253,7 +253,7 @@
y: -9.8,
z: 0
},
linearDamping: 1,
damping: 1,
dimensions: {
x: 0.4,
y: 1.37,
@ -301,7 +301,7 @@
z: DIAMETER
},
restitution: 1.0,
linearDamping: 0.00001,
damping: 0.00001,
gravity: {
x: 0,
y: -9.8,
@ -871,7 +871,7 @@
y: -100,
z: 0
},
linearDamping: 1,
damping: 1,
angularDamping: 10,
mass: 10,
userData: JSON.stringify({
@ -990,7 +990,7 @@
z: 0
},
restitution: 10,
linearDamping: 0.0,
damping: 0.0,
velocity: {
x: 0,
y: -0.01,
@ -1113,7 +1113,7 @@
y: 0,
z: 0
},
linearDamping: 0.4,
damping: 0.4,
userData: JSON.stringify({
resetMe: {
resetMe: true
@ -1156,7 +1156,7 @@
y: 0,
z: 0
},
linearDamping: 0.2,
damping: 0.2,
userData: JSON.stringify({
resetMe: {
resetMe: true

View file

@ -233,7 +233,7 @@ MasterReset = function() {
y: -9.8,
z: 0
},
linearDamping: 1,
damping: 1,
dimensions: {
x: 0.4,
y: 1.37,
@ -282,7 +282,7 @@ MasterReset = function() {
z: DIAMETER
},
restitution: 1.0,
linearDamping: 0.00001,
damping: 0.00001,
gravity: {
x: 0,
y: -9.8,
@ -853,7 +853,7 @@ MasterReset = function() {
y: -100,
z: 0
},
linearDamping: 1,
damping: 1,
angularDamping: 10,
mass: 10,
userData: JSON.stringify({
@ -973,7 +973,7 @@ MasterReset = function() {
z: 0
},
restitution: 10,
linearDamping: 0.0,
damping: 0.01,
velocity: {
x: 0,
y: -0.01,
@ -1096,7 +1096,7 @@ MasterReset = function() {
y: 0,
z: 0
},
linearDamping: 0.4,
damping: 0.4,
userData: JSON.stringify({
resetMe: {
resetMe: true
@ -1139,7 +1139,7 @@ MasterReset = function() {
y: 0,
z: 0
},
linearDamping: 0.2,
damping: 0.2,
userData: JSON.stringify({
resetMe: {
resetMe: true