# How Do I implement a chase cam?

**URL:** <https://discourse.threejs.org/t/how-do-i-implement-a-chase-cam/56054>\
**Category:** Questions\
**Tags:** camera, geometry\
**Created:** [September 15, 2023, 7:13pm UTC](https://discourse.threejs.org/t/how-do-i-implement-a-chase-cam/56054 "2023-09-15T19:13:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boredcoder411](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/boredcoder411/32/40024_2.png) [@boredcoder411](https://discourse.threejs.org/u/boredcoder411)\
**Post date:** [September 15, 2023, 7:13pm UTC](https://discourse.threejs.org/t/how-do-i-implement-a-chase-cam/56054/1 "2023-09-15T19:13:38Z")

</div>

I made a simple drifting game in three.js and cannon-es for the actual drifting part, now I want the camera to constantly follow the car around… here is my code if you need it: [GitHub - boredcoder411/drifting](https://github.com/boredcoder411/drifting)

---

<div class="post-metadata">

**Author:** ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Post date:** [September 15, 2023, 8:38pm UTC](https://discourse.threejs.org/t/how-do-i-implement-a-chase-cam/56054/2 "2023-09-15T20:38:10Z")

</div>

> [@Third-Person Camera](https://discourse.threejs.org/t/third-person-camera/18624):
>
> Here are some basic examples i made for implementing a third-person camera. In order to avoid a stiff attachment to the player we can smoothly lerp the camera or camera rig to the goal to compensate quick motions. First the more ideal dolly concept which respects the dolly distance, moving the camera dolly behind the player again even when not moving. Dolly + goal (use keyboard ASDW) Fixed goal: [https://codepen.io/Fyrestar/pen/zYqjNOL](https://codepen.io/Fyrestar/pen/zYqjNOL) This is the first example i made longer ago. As you se…

---

<div class="post-metadata">

**Author:** ![boredcoder411](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/boredcoder411/32/40024_2.png) [@boredcoder411](https://discourse.threejs.org/u/boredcoder411)\
**Post date:** [September 16, 2023, 6:19am UTC](https://discourse.threejs.org/t/how-do-i-implement-a-chase-cam/56054/3 "2023-09-16T06:19:40Z")

</div>

Great, but I’ve already seen your codepen, (I think on another forum it was a jsfiddle, but I digress), and I’ve tried to implement it, to no avail. My screen just goes black, and the console is clear. Do you know what’s going on?
