Nathan Jenkins edited figures/three/index3.html  about 11 years ago

Commit id: bd72617ab5bc711fd25c7b5c055eac4c1a49c50c

deletions | additions      

       

var geometry, material, mesh;  var gravity = 1.0;  var ground_position = -400; -300;  var half_world_width = 500;  var simulation_stopped = true; 

if( (mesh.position.y < ground_position)|| (mesh.position.y > -ground_position)  ){ mesh.speed.y = -mesh.speed.y;  }  else{