Parameters for joints, hidden FS19?

Your forum for all discussions around Modding.
SimDala
Posts: 45
Joined: Tue Jun 15, 2021 5:52 pm
Location: Skellefteå, Sweden

Parameters for joints, hidden FS19?

Post by SimDala »

In FS17, it is possible to use spring and damping parameters in joints like:

<joint component1="1" component2="2" index="1>1" enableCollision="false" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="0 0 300" rotLimitDamping="0 0 30" rotLimitForceLimit="-1 -1 10" />

But this seems to be change due to FS19 with the new game engine.

The question is how do similar joint configuration looks like in FS19?

I can't fint anything about rotLimitForceLimit in any FS19 model that I've investigated, so I think the implementation has changed.

Regards,

Simon
Last edited by SimDala on Wed Aug 25, 2021 1:23 am, edited 1 time in total.
s8080t
Posts: 712
Joined: Wed Nov 20, 2019 9:26 pm

Re: Parameters for joints, hided in FS19?

Post by s8080t »

Hi,

I'd recommend you have a look a) at the default vehicles and b) the LUADOC on GDN.

If you search there for rotLimitForceLimit, you'll see that the parameter is loaded from the XML and how it's used in the script in FS19.
Languages: DE/EN
Plattform: PC
Meine Mods
Grünlandsuchti
IT-Spezialexperte
OpenSource-Verfechter
ilsescully
Posts: 1
Joined: Tue Jul 06, 2021 4:15 am

Re: Parameters for joints, hided in FS19?

Post by ilsescully »

Thank you! This helps.
slope game online
SimDala
Posts: 45
Joined: Tue Jun 15, 2021 5:52 pm
Location: Skellefteå, Sweden

Re: Parameters for joints, hidden in FS19?

Post by SimDala »

Yes, i found the implementation now. Strange i didn't see it before.

Thanks.

By the way, does anyone know what the numbers in the joints come from?

I understand it's connected to what parts to relate to, but don't know how to calculate new figures on other joints.
Last edited by SimDala on Wed Aug 25, 2021 1:24 am, edited 1 time in total.
s8080t
Posts: 712
Joined: Wed Nov 20, 2019 9:26 pm

Re: Parameters for joints, hided in FS19?

Post by s8080t »

What numbers? :> If it's an element inside the XML (like a configuration, an attacherJoint, lights, ...), it's usually numbered from top down (starting with 1, not 0).
Languages: DE/EN
Plattform: PC
Meine Mods
Grünlandsuchti
IT-Spezialexperte
OpenSource-Verfechter
SimDala
Posts: 45
Joined: Tue Jun 15, 2021 5:52 pm
Location: Skellefteå, Sweden

Re: Parameters for joints, hidden FS19?

Post by SimDala »

Okay, maby I was a little bit unclear about what I was asking.

If you got a joint like this:
<joint component1="1" component2="2"

Where comes component "1" and component "2"?

I guess its defined in the moving tool like:

<movingTool node="armXRotPhysic" delayedNode="armXRot" playSound="true">
...
<componentJoint index="6" anchorActor="0"/>
</movingTool>

But I'm not sure about this.

I also noticed that many mods have different moving tools with same componentJoint index.
Eische
Posts: 3773
Joined: Thu Oct 18, 2018 5:17 pm

Re: Parameters for joints, hidden FS19?

Post by Eische »

The component numbers are defined by the order in the giants editor scenegraph (modeltree).
In this example of the basegame John Deere 6R:
Image
The components naming does not matter. The order is important.

series6r_main_component1 --> component 1
series6r_axis_component2 --> component 2

Only the root components (plus icon most to the left side) count for that.

The numbering is also used for the component masses.

Many vehicle have moving parts, but only one component. So it is not possible/necessary to create joints in this case.
Playing on PC - Win10
Ryzen 3600
RX 5500XT
16GB Ram
How to post log file
How to upload pictures
Please report bugs for FS22 using the bugtracker
SimDala
Posts: 45
Joined: Tue Jun 15, 2021 5:52 pm
Location: Skellefteå, Sweden

Re: Parameters for joints, hidden FS19?

Post by SimDala »

Eische wrote: Wed Aug 25, 2021 8:49 am The component numbers are defined by the order in the giants editor scenegraph (modeltree).
In this example of the basegame John Deere 6R:
Image
The components naming does not matter. The order is important.

series6r_main_component1 --> component 1
series6r_axis_component2 --> component 2

Only the root components (plus icon most to the left side) count for that.

The numbering is also used for the component masses.

Many vehicle have moving parts, but only one component. So it is not possible/necessary to create joints in this case.
Okay, so that's where the component numbers come from. I can't avoid wounder why its needed, instead of just using the normal i3d Mapping.

But do you know if its possible to set the Force constraints on MovingTools directly instead of specifying these parameters on the joint that the MovingTool is operating on?

It seems to me that it would be more straight forward to specify the maximum force and so on directly on moving tool instead of the actual joint.
The difference would also be if it's only possible do define forces in joints between components and not within the same component.
Eische
Posts: 3773
Joined: Thu Oct 18, 2018 5:17 pm

Re: Parameters for joints, hidden FS19?

Post by Eische »

Sorry, I can't answer this. This is where my knowledge ends.
Hopefully someone else has an answer for you.
Playing on PC - Win10
Ryzen 3600
RX 5500XT
16GB Ram
How to post log file
How to upload pictures
Please report bugs for FS22 using the bugtracker
Post Reply