Fixed rolling ball interpolation

This commit is contained in:
MontyTRC89 2024-09-29 06:16:13 +02:00
parent 63e0f254f6
commit 061d152207
2 changed files with 7 additions and 2 deletions

View file

@ -173,8 +173,8 @@ LARA_PETROL_MESH
LARA_DIRT_MESH
LARA_CROWBAR_ANIM
LARA_TORCH_ANIM
SINGLE_BRAID_HAIR
DUAL_PIGTAIL_HAIR
HAIR_PRIMARY
HAIR_SECONDARY
SNOWMOBILE_LARA_ANIMS
SNOWMOBILE
QUAD_LARA_ANIMS

View file

@ -99,7 +99,10 @@ void RollingBallControl(short itemNumber)
item->Animation.Velocity.y = -(GetRandomControl() % int(round(item->Animation.Velocity.z) / 8.0f));
}
else
{
item->Animation.Velocity.y = -item->Animation.Velocity.y / 4.0f;
item->DisableInterpolation = true;
}
}
int frontX = item->Pose.Position.x;
@ -307,6 +310,8 @@ void RollingBallControl(short itemNumber)
}
else
item->Pose.Orientation.y = angle;
item->DisableInterpolation = true;
}
item->Pose.Orientation.x -= ((abs(item->ItemFlags[0]) + abs(item->ItemFlags[1])) / 2) / vDivider;