Search Unity

Problems with body position in ARFoundation 2.2 / ARKit 3

Discussion in 'AR' started by distastee, Jul 24, 2019.

  1. distastee

    distastee

    Joined:
    Mar 25, 2014
    Posts:
    66
    Hey folks,
    Does anyone else have issues getting the correct body position when using ARKit 3? I seem to be getting [0,0,0] for my world and local positions for the root + hips. However - I DO get correct hip rotations.

    Is anyone else having issues with this? Do I have something improperly hooked up? Is there another method I should be using?

    Help is much appreciated!
     
  2. distastee

    distastee

    Joined:
    Mar 25, 2014
    Posts:
    66
    Figured it out. Forgot to post the solution:

    I ASSUMED that body position and rotation would show up in in the anchorpose of the root/hip joints. they dont.

    you need to use body.pose.position and body.pose.rotation for this. probably best to apply them to the parent object.
     
  3. CB-Mishra

    CB-Mishra

    Joined:
    Feb 17, 2018
    Posts:
    4