Sync Camera and Object

Right now I have a camera following a cube. I want to syncronize the camera and the cube, but I can’t use child. The cube is on the floor, and the camera is in the sky so rigidbody.addforce is unequal due to friction. Also, I cannot use transform.position instead of rigidbody.addforce because I need the objects to move around transform.forward. Thank you!

@sosh you do not have enough karma to upvote.

@supermiu you can set the position of the camera as per the position of your object in each frame. Use LateUpdate to set the position of camera.

Check out this Third Person Camera tutorial for details as to how it is done.