This commit is contained in:
Никита Круглицкий 2025-05-11 17:53:26 +06:00
parent e441999c17
commit 6a128f470b
2 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ local FrontWheelsConfig = table.merge(
{ {
SteerLock = 33, SteerLock = 33,
CustomWheel = { CustomWheel = {
CasterAngle = 3, CasterAngle = 7,
CamberAngle = -3, CamberAngle = -6,
ToeAngle = 0.5 ToeAngle = 0.5
} }
} }

View File

@ -18,7 +18,7 @@ function Wheel:initialize(config)
self.rollingResistance = config.RollingResistance or 20 self.rollingResistance = config.RollingResistance or 20
self.squat = config.Squat or 0.1 self.squat = config.Squat or 0.1
self.slipCircleShape = config.SlipCircleShape or 1.05 self.slipCircleShape = config.SlipCircleShape or 1.05
self.casterAngle = math.rad(config.CasterAngle or 0) self.casterAngle = math.rad(config.CasterAngle or 0) * self.direction
self.camberAngle = math.rad(config.CamberAngle or 0) self.camberAngle = math.rad(config.CamberAngle or 0)
self.toeAngle = math.rad(config.ToeAngle or 0) * -self.direction self.toeAngle = math.rad(config.ToeAngle or 0) * -self.direction
@ -136,7 +136,7 @@ function Wheel:stepLateral(Vx, Vy, Lc, kFy, kSy)
local VxAbs = math.abs(Vx) local VxAbs = math.abs(Vx)
local Sy = 0 local Sy = 0
if VxAbs > 0.3 then if VxAbs > 0.1 then
Sy = math.deg(math.atan(Vy / VxAbs)) Sy = math.deg(math.atan(Vy / VxAbs))
Sy = Sy / 50 Sy = Sy / 50
else else