# Vector3.RotateTowards issues

**URL:** https://discussions.unity.com/t/vector3-rotatetowards-issues/653380
**Category:** 2D
**Tags:** 2D
**Created:** [January 26, 2017, 7:06pm UTC](https://discussions.unity.com/t/vector3-rotatetowards-issues/653380 "2017-01-26T19:06:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![SneakyGnome](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SneakyGnome](https://discussions.unity.com/u/SneakyGnome)
#### Post date: [January 26, 2017, 7:06pm UTC](https://discussions.unity.com/t/vector3-rotatetowards-issues/653380/1 "2017-01-26T19:06:29Z")

</div>

I am trying to get a 2D object to to rotate towards my mouse (not lookAt), but it won’t rotate regardless of what I put for RadiansDelta and MagnitudeDelta. Here is the code:

void Update () {  
Vector3.RotateTowards (transform.rotation.eulerAngles, target.transform.position, Mathf.Deg2Rad_turnRate_Time.deltaTime, 1f);  
}

---

<div class="post-metadata">

### Author: ![LiterallyJeff](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/literallyjeff/32/900755_2.png) [@LiterallyJeff](https://discussions.unity.com/u/LiterallyJeff)
#### Post date: [January 26, 2017, 9:54pm UTC](https://discussions.unity.com/t/vector3-rotatetowards-issues/653380/2 "2017-01-26T21:54:52Z")

</div>

RotateTowards returns a new Vector3 which is an interpolation between the first two parameters.

You need to assign it:  
“transform.rotation.eulerAngles = Vector3.RotateTowards(…);”
