// Cloned by Co on 5 Nov 2018 from World "One Cube World" by Starter user
// Please leave this clone trail here.
const skycolor = 'Red'; // sky color
const 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()
{
// the object is a cube (each dimension equal):
var geometry = new THREE.SphereGeometry( 10, 10, 10 , 10.0, 10.0, 0, 10.0);
var material = new THREE.MeshBasicMaterial( {color: 0xffff01} );
var theobject = new THREE.Mesh( geometry, material );
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()
//{
// theobject.position.x = theobject.position.x + AB.randomIntAtoB ( -100, 100);
// theobject.position.y = theobject.position.y + AB.randomIntAtoB ( -100, 100);
//};
}