fix whell z distance detection

This commit is contained in:
Alexsandro Percy 2025-08-11 18:45:41 -03:00
parent e1e6cd8fcd
commit 72141fecf1

View File

@ -167,8 +167,8 @@ function automobiles_lib.ground_get_distances(self, radius, axis_distance)
local wheels = {
{x = -front_wheel_x, y = 0, z = axis_distance}, -- Roda frontal esquerda
{x = front_wheel_x, y = 0, z = axis_distance}, -- Roda frontal direita
{x = -rear_wheel_x, y = 0, z = -axis_distance}, -- Roda traseira esquerda
{x = rear_wheel_x, y = 0, z = -axis_distance} -- Roda traseira direita
{x = -rear_wheel_x, y = 0, z = -0}, -- Roda traseira esquerda
{x = rear_wheel_x, y = 0, z = -0} -- Roda traseira direita
}
--retornando pitch e roll