RealismusModding / FS17_RM_soilCompaction

A mod to simulate soil compaction
14 stars 5 forks source link

Dual/Tripple wheels are not taken into account. #21

Closed mrbear closed 6 years ago

mrbear commented 6 years ago

It seams that adding wheels does not have any or effekt or adds to ground compaction.

MT900E with single wheels causes low compaction. MT900E with tripple wheels causes medium compaction.

900 Vario with single wheels causes low compaction. 900 Vario with single wheels causes medium compaction.

Narrow wheels seams to work

700 Vario with narrow wheels creates medium compaction 700 Vario with wide wheels creates low compaction

The problem might be that we don't take the width of wheel.additionalWheels into account.

reallogger commented 6 years ago

The width is now taken into account with twin and triple wheels. But I still get low compaction with MT900E with single wheels and medium compaction when using triple wheels. Will look further into it.

mrbear commented 6 years ago

Should you not add the width of the additional wheels to width around line 90?

This is what I did when I was working on it:

if wheel.additionalWheels ~= nil then
    for _,additionalWheel in pairs(wheel.additionalWheels) do
        width=width + additionalWheel.width
    end
end
reallogger commented 6 years ago

yeah forgot that one. Should be working now.