Right now we can access the old bone position from last frame (?) during
Update()
and for the current frame during
PostLateUpdate()
.
When we try accessing the bone position outside of this frame timing, for example in
LateUpdate()
, we get access to some weird in-between IK data (?) that is completely useless to us.
The Udon VM should always return the cached bone positions from the last time that IK calculations finished, so it is never wrong.
The attached GIF shows the hand bone position during
LateUpdate()
in red, and during
PostLateUpdate()
in green. As you can see, we don't get anything usable during
LateUpdate()
and possibly also during a lot of other events.