It may be trouble full when loading it for the first time, give it a chance to load all the assets and then reload.
I know the performance is terrible, but will keep trying to improve it.
My current goal is to create a chase cam similar to any other racing game. The problem right now is the camera follows the car alright but it does not align itself behind the car.
I’m currently using:
function cameraUpdate(){
//creating an offset position for camera with respect to the car
var offset = new THREE.Vector3(chassis.position.x + 20, chassis.position.y + 6, chassis.position.z);
//tried to create delay position value for enable smooth transition for camera
camera.position.lerp(offset, 0.2);
//updating lookat alway look at the car
camera.lookAt(chassis.position.x, chassis.position.y, chassis.position.z);
}
Please note : Reload the link if the car fails to detect collision or flips upside down. Use W, A, S, D for movement
@Fyrestar If you don’t mind, could you update your fiddle to use a specific version of Three.js in the script src URL, just in case some future version of Three breaks the example, and so that the forum links remain working over time?
EDIT: That fiddle still works after two years, by the way. Sorry for bumping the old thread. I am commenting about this anywhere I see it. When I’m learning and I run into an old broken fiddle it is always a bummer.