So I wanted to use ManipulateBonePosition to make a bone follow an entity. However, ManipulateBonePosition uses local coordinates rather than WS ones. I just thought “I’ll use WorldToLocal to convert the entity’s position relative to the bone’s default position!” So I tried this, and the bone didn’t line up! So then I figured that the orientation of the bone’s coordinate system is relative to it’s parent bone rather than itself. So I tried this, and it was still off! So then I thought that maybe its orientation is relative to it’s nearest physbone rather than simply its parent bone. I tried this, and it was still off!
I then tried various combinations of bone positions and bone angles as the local system’s orientation, but none of them seemed to work.
What local system does ManipulateBonePosition use? How would I make a ManipulateBonePositionWS function?? Help!