I have a character and I need to save all the joints positions, like Hip - Leftleg - Rightleg.
Should I use transform.position
or transform.localPosition
?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityI have a character and I need to save all the joints positions, like Hip - Leftleg - Rightleg.
Should I use transform.position
or transform.localPosition
?
You can use localPosition
because it's the position of the child relative to its parent. The transform.position
is not, it's relative the world position, if you want to store the joint position.