private float CalculateMaxHeight(float force)
{
// Calculate the initial vertical velocity when the player hits the trampoline
float initialVelocity = force;
// Calculate the maximum height using the formula:
// h = (v^2) / (2 * g)
float maxHeight = (initialVelocity * initialVelocity) / (2 * Mathf.Abs(-9.81f));
return maxHeight;
}