Reputation: 11
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
);
}
Upvotes: 1
Views: 80