where this.cam = app.root.findByName(‘Camera’);
since 2 hrs ago it worked… don’t understand what happened.
Edit: the error say
[htmlFollow.js:40]: TypeError: this.cam.camera is undefined
Edit2: seems it doesn’t recognize the camera component in the camera entity
Uhm u are right @dave, i have pointed and script.camera and it don’t find it, but i have re-checked all the entites and there isn’t another camera there is xcamera, cameraD, chkcamera (that always existed), bit it seems it point to another node…but more strange…i have added the tag Camera to the camera entity and changed findByName with findByTag and still the same result
I had a proper look through the project and this one is a bit weird and was hard to find.
It appears your Survival+bonfire.json has something in it called ‘Camera’ (Maybe in the model?) and findByName is finding that first (as Dave mentioned above).
Didn’t thought that the models can have also a camera attribute and didn’t thought that that is found as node…i see…every day i’m learning something new…also after 1 and half year…i will import the fbx in 3ds and export it again, in my export options cameras are not included, this model was from web and didn’t checked it coz was very simple. Thanks a lot @steven and @dave