Page 1 of 1

Spidertron movement

Posted: Thu Jun 03, 2021 1:33 pm
by PFQNiet
What is the max speed of a spider-vehicle and how do I change it in data?

There appears to be no speed values on the spider-vehicle itself, just a fuel consumption which seems to indicate "if the spider is moving, it consumes this much fuel".

The legs have things that seem promising, such as initial_movement_speed and movement_acceleration, but what do these numbers mean? They seem to be very small on the vanilla spidertron, and also they don't seem to indicate a max speed.

Re: Spidertron movement

Posted: Thu Jun 03, 2021 2:23 pm
by Xorimuth
There's nothing exact about spidertron movements, but yes, those 2 values change the speed of the spidertron. If you are using the pre-defined `create_spidertron{}` command in data it has a leg_movement_speed argument which is multiplied by the default values of those 2 values. Example: https://github.com/tburrows13/Spidertro ... lua#L6-L12

Re: Spidertron movement

Posted: Thu Jun 03, 2021 2:49 pm
by PFQNiet
There's predefined functions for spidertrons? Whaaaaaat? Where can I learn more about these?

Re: Spidertron movement

Posted: Thu Jun 03, 2021 3:35 pm
by Xorimuth