# Smooth rotate object

**URL:** <https://phaser.discourse.group/t/smooth-rotate-object/1664>\
**Category:** Phaser 3\
**Created:** [March 13, 2019, 12:39am UTC](https://phaser.discourse.group/t/smooth-rotate-object/1664 "2019-03-13T00:39:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![losos](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/losos/32/532_2.png) [@losos](https://phaser.discourse.group/u/losos)\
**Post date:** [March 13, 2019, 12:39am UTC](https://phaser.discourse.group/t/smooth-rotate-object/1664/1 "2019-03-13T00:39:32Z")

</div>

Hello, i have just a sprite object.

How to set new angle of object smoothly? for example, i wanna rotate player 180\* when step on trap, like a vector or “force”, not instant change rotate position.

.setAngle() and .setRotation() not solve my problem.

I using Matter.js psyhics

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/yannick/32/732_2.png) [@yannick](https://phaser.discourse.group/u/yannick)\
**Post date:** [March 19, 2019, 6:49pm UTC](https://phaser.discourse.group/t/smooth-rotate-object/1664/2 "2019-03-19T18:49:38Z")

</div>

Like so?  
`Phaser.Physics.Matter.Matter.Body.setAngularVelocity(body, velocity)`

---

<div class="post-metadata">

**Author:** ![Jackolantern](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jackolantern/32/450_2.png) [@Jackolantern](https://phaser.discourse.group/u/Jackolantern)\
**Post date:** [March 20, 2019, 12:17am UTC](https://phaser.discourse.group/t/smooth-rotate-object/1664/3 "2019-03-20T00:17:59Z")

</div>

If you know the ending angle and want your sprite to rotate to that angle, the easiest way to do it is to tween it. That seems to be the solution you are looking for to me.
