mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 08:39:01 +00:00
fixed RotateTorso
This commit is contained in:
parent
b01987719e
commit
c21061a199
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ CPedIK::RotateTorso(AnimBlendFrameData *node, LimbOrientation *limb, bool change
|
|||
// We can't get the parent matrix of an hanim frame but
|
||||
// this function is always called with PED_MID, so we know the parent frame.
|
||||
// Trouble is that PED_MID is "Smid" on PS2/PC but BONE_torso on mobile/xbox...
|
||||
// so this doesn't exactly do what we'd like anyway
|
||||
RwMatrix *mat = GetComponentMatrix(m_ped, PED_MID);
|
||||
// Assuming BONE_torso, the parent is BONE_mid, so let's use that:
|
||||
RwMatrix *mat = GetBoneMatrix(m_ped, BONE_mid);
|
||||
|
||||
RwV3d vec1, vec2;
|
||||
vec1.x = mat->right.z;
|
||||
|
|
Loading…
Reference in a new issue