toe fix
This commit is contained in:
@@ -12,6 +12,7 @@ local Wheel = class('Wheel')
|
||||
function Wheel:initialize(config)
|
||||
config = config or {}
|
||||
|
||||
self.direction = config.Direction or 1
|
||||
self.mass = config.Mass or 20
|
||||
self.radius = config.Radius or 0.27
|
||||
self.rollingResistance = config.RollingResistance or 20
|
||||
@@ -19,7 +20,7 @@ function Wheel:initialize(config)
|
||||
self.slipCircleShape = config.SlipCircleShape or 1.05
|
||||
self.casterAngle = math.rad(config.CasterAngle or 0)
|
||||
self.camberAngle = math.rad(config.CamberAngle or 0)
|
||||
self.toeAngle = math.rad(config.ToeAngle or 0)
|
||||
self.toeAngle = math.rad(config.ToeAngle or 0) * -self.direction
|
||||
|
||||
self.forwardFriction = Friction:new(config.ForwardFriction)
|
||||
self.sideFriction = Friction:new(config.SideFriction)
|
||||
|
||||
Reference in New Issue
Block a user