Rooney Flow
Rooney Flow

Reputation: 11

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

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

Answers (0)

Related Questions