mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fixed rolling ball interpolation
This commit is contained in:
parent
63e0f254f6
commit
061d152207
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue