Outerra forum

Anteworld - Outerra Game => Modding: Importer, Tools & Utilities => Topic started by: wayne57 on July 01, 2014, 08:53:30 pm

Title: is this posssible
Post by: wayne57 on July 01, 2014, 08:53:30 pm
i made a two wheeled vehicle and was wondering if it can be scripted
to drive. it would have to operate like a wheel chair where the whole body turns not the wheels
http://www.mediafire.com/view/4g15q9ch0nk1djd/TWOWHEEL.jpg (http://www.mediafire.com/view/4g15q9ch0nk1djd/TWOWHEEL.jpg)

the wheels have to spin like normal just not turn

thanks

wayne
Title: Re: is this posssible
Post by: Jagerbomber on July 01, 2014, 10:19:09 pm
How hard is it to post an image on a forum?
Title: Re: is this posssible
Post by: PytonPago on July 02, 2014, 12:06:12 am
Make additional 4 empty meshes and set them as wheels, then just script the model-ones to turn in an average speed of the two on the corresponding side and a little tweak to let it turn the other way (when turning when on place) or slightly slower (when in some motion) to make it look realistic (just like tank-tracks)...
Title: Re: is this posssible
Post by: wayne57 on July 03, 2014, 06:31:02 pm
well i took your advice and used a six wheel script from one of the trucks on here
only problem is it sits to low and turns real wide but it does work.
I have no idea how to script only model making.heres a link to a video of it

http://www.mediafire.com/watch/ufgewalm2tdeazu/capture_1404425245.webm (http://www.mediafire.com/watch/ufgewalm2tdeazu/capture_1404425245.webm)

little choppy for some reason
Title: Re: is this posssible
Post by: PytonPago on July 04, 2014, 12:11:51 am
try to use the tank-script for wheels dynamics (it should be easier to get it turn on place) and get the dummy wheels a bigger radius ... or, try to get the dummy wheels centers just millimeters away from each other (that should make the turning radius much smaller too - well if the steering max is rightly big)
Title: Re: is this posssible
Post by: wayne57 on July 06, 2014, 11:32:15 pm
i need to raise the vehicle because it sits too low
I made some adjustments since i first made it and it turns in a smaller radius now
but i have to lower it
what part of the script would i have to change to do this please

thanks
Title: Re: is this posssible
Post by: PytonPago on July 07, 2014, 12:17:59 am
You could play with this steering constants in here :

Code: [Select]
  //sounds
  this.load_sound("mon_start.ogg");
  this.load_sound("mon_idle.ogg");
  this.add_sound_emitter("carpaint");

  return {mass:2315, steering:2.3, steering_ecf:30, centering:2.3, centering_ecf: 40,
  com:{z:-0.7}};
}

I see the wheel-radius is 0.3 meters, how far are the centers of the wheels apart on one of the sides ? Also the slip on wheel parameters may have some effect too, doe didn't try to speculate with it looking at the turn-radius. Trying just four wheels instead of six will have some effect too .... just try those things and pick what will work for ya.