Community Forum

Parallel guide of attacher of front loader

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created17.01.2021 21:14


Unitech Uni (Unknown) 17.01.2021 21:14
Excuse me, Bilbo, my topic was interrupted and I've got no answer.
I'm trying to build a frontloader with rotating attacher plate and to provide it's parallel guide when lifting the arm.
I, tried to add <inputAttacherJoint... to the arm as movingTool, but to my regret it hasn't help.
(BTW, there's no such string in analog's xml where attachers .work right).
After many efforts I cleared out that the problem is in values minRotLimits and maxRotLimits.
When I define maxRotLimits less than minRotLimits parallel guide works perfectly,
but it cuts the angle of attacher's rotation to zero,
In some combination (interferenced zones of min- and maxRotLimits) it starts to work with a small angle but with good parallelism.
These values are what?
Attacher's rotation limits relatively to the arm? In what position? Why they are from two values each, in what order they must be written?
Sorry for million questions.
Is there any description of how to do it correctly?

Bilbo Beutlin (BBeutlin) 17.01.2021 23:00
Afaik there's no guide for this affair.
I'd suggest you take a very similar default vehicle, open the i3d and xml. Then you 'play' in i3d with the moving tools/parts described in xml. Watch the rotation values and perhaps memorize these. This you do with all involved parts.

These min/max limits are a pair used by the Cylindered.lua in function updateDependentToolLimits() eg. line #1211
dependentTool.movingTool.rotMin = MathUtil.lerp(dependentTool.minRotLimits[1], dependentTool.minRotLimits[2], 1-state)
This 'lerp' stands for "linear interpolation", a mathematical function that returns a value between two others at a point on a linear scale. For more infos google "mathf.lerp".

Unitech Uni (Unknown) 17.01.2021 23:27
Thank you so much, I'll try to study all)


Note: Log in to post. Create a new account here.