const skyColor = '#333'; // sky color
var objectSize = 300; // size of object
const startRadius = 1000; // distance from centre we start the camera at
const maxRadius = startRadius * 10; // maximum distance from camera we render things
const skyColorObject = new THREE.Color ( skyColor.toLowerCase() );
function World()
{
var shape = new THREE.BoxGeometry ( 100, objectSize, objectSize );
var theObject = new THREE.Mesh ( shape );
this.newRun = function()
{
// start a 3D scene:
ABWorld.init3d ( startRadius, maxRadius, skyColorObject );
// add the object to the scene:
// ABWorld.scene.add(theObject);
};
this.nextStep = function()
{
var shape = new THREE.BoxGeometry ( 100, objectSize, objectSize );
var theObject = new THREE.Mesh ( shape );
ABWorld.scene.add(theObject);
setTimeout(1000);
};
}