i’m trying to have a camera that fellows a mesh in local rotation like a simple tpp game but i can’t
i tried to make the mesh a parent of the camera its not working , tried to change in alpha and beta props of the arc rotate camera but only rotating in global axis , and the other camera types won’t focus on a target , i’m stuck the whole day please help
How about this:
This very simple example has a free camera. The parent of the camera is set to be the sphere. The sphere is rotating and the camera follows it according to the animating rotation.
The net visual isn’t super interesting, it basically just looks like the ground is spinning, but it’s actually the sphere that’s rotating and the camera is following it.
Does that all make sense?
Is that helpful?
what should i say you saved me . thank you so much .
i used setParent() method instead of .parent .so it shows “setParent() is not a function” i didn’t notice there is a difference .
.setParent() works for meshes but not cameras unfortunately. Sorry for the confusion.