# I have some Questions

**URL:** <https://talk.code3dgames.com/t/i-have-some-questions/188>\
**Category:** Uncategorized\
**Created:** [February 20, 2020, 6:32pm UTC](https://talk.code3dgames.com/t/i-have-some-questions/188 "2020-02-20T18:32:15Z")\
**Posts on this page:** 1\
**Showing post:** 33

<div class="post-metadata">

**Author:** ![chris](https://talk.code3dgames.com/user_avatar/talk.code3dgames.com/chris/32/5_2.png) [@chris](https://talk.code3dgames.com/u/chris)\
**Post date:** [June 22, 2020, 12:01am UTC](https://talk.code3dgames.com/t/i-have-some-questions/188/33 "2020-06-22T00:01:21Z")

</div>

Sorry for the delayed response – I have limited connectivity at the moment.

The main problem that I see in the code is that `tween` should be capitalized:

```auto
  var tween = new TWEEN.Tween(sword.rotation);

```

When using tweens, you have to have something that tells them to update regularly. In our code, we usually do this inside the `animate()` function:

```auto
  function animate() {
    requestAnimationFrame(animate);
    var t = clock.getElapsedTime();

    TWEEN.update();

    renderer.render(scene, camera);
  }

```

Lastly, to rotate 90°, you will want to rotate to `Math.PI/2` instead of `100`.

I should be available for the next few days if you run into any other issues. Good luck with your game!

-Chris

---

_[View the full topic](https://talk.code3dgames.com/t/i-have-some-questions/188)._
