# SetHumanPose issue

**URL:** https://discussions.unity.com/t/sethumanpose-issue/659296
**Category:** Animation
**Tags:** Animation
**Created:** [March 23, 2017, 9:10pm UTC](https://discussions.unity.com/t/sethumanpose-issue/659296 "2017-03-23T21:10:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![roumenf](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@roumenf](https://discussions.unity.com/u/roumenf)
#### Post date: [March 23, 2017, 9:10pm UTC](https://discussions.unity.com/t/sethumanpose-issue/659296/1 "2017-03-23T21:10:20Z")

</div>

Hi,

I have the following issue: I animated a humanoid model in a scene, by setting its transform’s position and rotation, as well as the rotations of its bones. So far, so good. Then I tried to limit the animated pose to the model’s muscle limits. To do it I used GetHumanPose() and SetHumanPose(). Unfortunately, apart of the muscle values, the humanPose contains bodyPosition & bodyRotation-fields too. Their values remained unchanged, but after SetHumanPose() was called, the model’s hip position and rotation were changed, which was a bit unexpected. I have two questions:

1. How should I set the values of bodyPosition & bodyRotation before calling SetHumanPose(), so that the position and rotation of the model’s hip remain unchanged? By the way, is this a bug or the expected behavior of this function?

2. Can you elaborate on how exactly the muscle values are converted to bone orientations? This would be an alternative to using SetHumanPose(). As to the Mecanim humanoid documentation, “this phase is straight forward”.

---

<div class="post-metadata">

### Author: ![roumenf](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@roumenf](https://discussions.unity.com/u/roumenf)
#### Post date: [April 17, 2017, 10:48am UTC](https://discussions.unity.com/t/sethumanpose-issue/659296/2 "2017-04-17T10:48:23Z")

</div>

Thanks. Found it out by myself.

---

<div class="post-metadata">

### Author: ![BernieRoehl](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@BernieRoehl](https://discussions.unity.com/u/BernieRoehl)
#### Post date: [April 16, 2018, 3:08am UTC](https://discussions.unity.com/t/sethumanpose-issue/659296/3 "2018-04-16T03:08:56Z")

</div>

I’m running into the same problem. What was your solution?

---

<div class="post-metadata">

### Author: ![awesomedata](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/awesomedata/32/405791_2.png) [@awesomedata](https://discussions.unity.com/u/awesomedata)
#### Post date: [May 18, 2018, 9:24pm UTC](https://discussions.unity.com/t/sethumanpose-issue/659296/4 "2018-05-18T21:24:15Z")

</div>

@roumenf

Might be nice to share your solution to this – there’s ZERO documentation about this issue, and I’m having issues with this as well.

---

<div class="post-metadata">

### Author: ![roumenf](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@roumenf](https://discussions.unity.com/u/roumenf)
#### Post date: [May 25, 2018, 1:46pm UTC](https://discussions.unity.com/t/sethumanpose-issue/659296/5 "2018-05-25T13:46:53Z")

</div>

> [@awesomedata](#):
>
> @roumenf
> 
> Might be nice to share your solution to this – there’s ZERO documentation about this issue, and I’m having issues with this as well.

Please see [the other thread](https://discussions.unity.com/t/671486) .
