# Minor rotation issues?

**URL:** <https://discussions.unity.com/t/minor-rotation-issues/657613>\
**Category:** C# & .NET\
**Tags:** Scripting\
**Created:** [March 8, 2017, 3:34am UTC](https://discussions.unity.com/t/minor-rotation-issues/657613 "2017-03-08T03:34:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pilchardDev](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@pilchardDev](https://discussions.unity.com/u/pilchardDev)\
**Post date:** [March 8, 2017, 3:34am UTC](https://discussions.unity.com/t/minor-rotation-issues/657613/1 "2017-03-08T03:34:25Z")

</div>

Hello, I’m currently using C# as a scripting base and when I change the rotation of an object, this object being the basic FPS Controller. It immediately goes back to what it was originally.

```csharp
public GameObject playerobj;
playerobj.transform.eulerAngles = new Vector3(0, 50, 0);

```

Any ideas? Thanks!

~Kind regards Lachlan.

---

<div class="post-metadata">

**Author:** ![TrickyHandz](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/trickyhandz/32/898974_2.png) [@TrickyHandz](https://discussions.unity.com/u/TrickyHandz)\
**Post date:** [March 8, 2017, 3:45am UTC](https://discussions.unity.com/t/minor-rotation-issues/657613/2 "2017-03-08T03:45:58Z")

</div>

If you are referring to Unity’s FPS controller from the Standard Assets package, the scripts used to control it are going to overwrite you changes on the next frame. The controller is designed so that the mouse position is used to drive the rotation of the object. You would need to disable the controller components that are updating the rotation to allow your change to be noticeable.

---

<div class="post-metadata">

**Author:** ![pilchardDev](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@pilchardDev](https://discussions.unity.com/u/pilchardDev)\
**Post date:** [March 8, 2017, 3:59am UTC](https://discussions.unity.com/t/minor-rotation-issues/657613/3 "2017-03-08T03:59:55Z")

</div>

> [@TrickyHandz](#):
>
> If you are referring to Unity’s FPS controller from the Standard Assets package, the scripts used to control it are going to overwrite you changes on the next frame. The controller is designed so that the mouse position is used to drive the rotation of the object. You would need to disable the controller components that are updating the rotation to allow your change to be noticeable.

Okay, Apologies I’m not too keen on changing the default setup, could you please explain how I would do this?

---

<div class="post-metadata">

**Author:** ![TrickyHandz](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/trickyhandz/32/898974_2.png) [@TrickyHandz](https://discussions.unity.com/u/TrickyHandz)\
**Post date:** [March 8, 2017, 1:43pm UTC](https://discussions.unity.com/t/minor-rotation-issues/657613/4 "2017-03-08T13:43:08Z")

</div>

That would really depend on what your actual goal is. If you could explain a bit more about what you are trying to do I can probably help more.
