How to create a third person camera that follows a cube and rotates with the cube

44 Views Asked by At

I which to create a third person camera in Threejs which follows a cube around and rotates when the cube rotates. Here is what I did

function (){
camera.position.set(
box.position
);
}

It works in following box but when the box rotates it doesn't as well.

So please help

I tried creating it on my own

Here is what I did

function (){
camera.position.set(
box.position
);
}
0

There are 0 best solutions below