Nothing happens.
i don’t get an heaven ore ground. And on the next chapter i don’t get an ball ore de golden boxplatforms. I am really sure i don’t have typos there but i can’t figure out the problem.
var lights = addLights();
var ball = addBall();
// var board = addBoard();
// var goal = addGoal();
function addLights() {
var light = new THREE.Object3D();
var light1 = new THREE.PointLight('white', 0.4);
light1.position.set(50, 50, -100);
light1.castShadow = true;
lights.add(light1);
var light2 = new THREE.PointLight('white', 0.5);
light2.position.set(-50, 50, 175);
light2.castShadow = true;
lights.add(light2);
scene.add(lights);
return lights;
}
function addBall() {
var shape = new THREE.SphereGeometry(10, 25, 21);
var cover = new THREE.MeshPhongMaterial({color: ‘red’});
cover.specular.setRGB(0.6, 0.6, 0.6);
var ball = new Physijs.SphereMesh(shape, cover);
ball.castShadow = true;
scene.add(ball);
return ball;
}
just for the beginning i would be very happy to know what my problem is^^