gametechmods

Robot Arena => General Support => Topic started by: Naryar on July 06, 2010, 03:45:13 AM

Title: Locked motor
Post by: Naryar on July 06, 2010, 03:45:13 AM
How do you exactly make a tread locked motor departing from a normal motor gmf ? I would like a locked 2-mag for a further version of NAR AI.
Title: Re: Locked motor
Post by: Pwnator on July 06, 2010, 06:38:46 AM
Is there an evident difference between both .txt files? Couldn't be bothered to check right now. If not, it's probably in the GMF.
Title: Re: Locked motor
Post by: JoeBlo on July 06, 2010, 08:10:57 AM
Its in the GMF itself (dont ask me where though) just because I know you can set a heap of axle settings in 3DSM (like limits, etc)

I had a quick look but cannot find anything self explanatory to be what your after

Edit: also wrong section Nary =P
Title: Re: Locked motor
Post by: Trovaner on July 06, 2010, 11:19:37 AM
In the CONSTRAINTSOLVER section of the GMF, all you have to do is set this:
Code: [Select]
*IS_LIMITED 0
*FRICTION 0.000000
*ANGLE_LIMITS -1.570796 1.570796
to this:
Code: [Select]
*IS_LIMITED 1
*FRICTION 0.000000
*ANGLE_LIMITS 1.570000 1.570796

By setting the angle limits so close, you are preventing it from turning. This works because RA2 is only looking at the power values (given in the TXT) when calculating wheel movement.  Although it isn't necessary, you may also want to increase torque and decrease speed on your edited 2-mag (so that the treads seem more realistic).
Title: Re: Locked motor
Post by: Naryar on July 06, 2010, 11:35:37 AM
In the CONSTRAINTSOLVER section of the GMF, all you have to do is set this:
Code: [Select]
*IS_LIMITED 0
*FRICTION 0.000000
*ANGLE_LIMITS -1.570796 1.570796
to this:
Code: [Select]
*IS_LIMITED 1
*FRICTION 0.000000
*ANGLE_LIMITS 1.570000 1.570796

By setting the angle limits so close, you are preventing it from turning. This works because RA2 is only looking at the power values (given in the TXT) when calculating wheel movement.

So easy.... Thanks

you may also want to increase torque and decrease speed on your edited 2-mag (so that the treads seem more realistic).

Heh. I already have a drive 2-mag (i think it has 55 torque). I'll edit that one.
Title: Re: Locked motor
Post by: Serge on July 06, 2010, 09:16:23 PM
Well, that's something new for me. I'll have to remember that!