Author Topic: Locked motor  (Read 1207 times)

Offline Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Locked motor
« 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.

Offline Pwnator

  • *
  • Posts: 6676
  • Rep: 15
  • Awards BOTM Winner
    • View Profile
    • http://pwnator.tumblr.com
    • Awards
  • See profile for gamer tags: Yes
Re: Locked motor
« Reply #1 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.
Clash Cubes 1 - Grey Matter (Runner-Up)
King of Karnage - Sideshow Freak (Runner-Up, Best Engineered)
Rust In Pieces - Paper Cut 3 (Grand Champion, Most Dangerous Bot)
Wheely Tag Tournament - Ion Thruster (Grand Champion, along with Ounces' DiSemboweLment)
UK vs USA - Dark Striker (Grand Champion)
Rust In Pieces 2 - Claymore (Runner-Up, Favourite Bot)
BBEANS 6 - Infection 4 (Runner-Up)
RA2 Team Championships - Serious Business, Skeksis (Runner-Up, along with Scrappy, S_M, and Badnik)
RA2 Team Championships 2 - The Other Stig (Runner-Up, along with Scrappy, S_M, Badnik, 090901, and R1885)
Replica Wars 3 - Abaddon (Runner-Up, Luckiest Bot)
BroBots - wheebot & yaybot (Runner-Up)
Robo Zone 2 - Dipper (4th place, Survival Champion, & Best Axle Bot)
ARBBC - The Covenant (3rd place, BW Rumble Winner, Most Feared BW)

Offline JoeBlo

Re: Locked motor
« Reply #2 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

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Locked motor
« Reply #3 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).

Offline Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: Locked motor
« Reply #4 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.

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: Locked motor
« Reply #5 on: July 06, 2010, 09:16:23 PM »
Well, that's something new for me. I'll have to remember that!
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org