So I'm working with pistons in XML, and I'm having an issue with their speed. Basically what I want them to do is extend all the way, retract all the way, and repeat indefinitely. While I have this working, the pistons move much slower while retracting than they do while extending. I have tried a bunch of ways to fix this but just can't seem to resolve the issue. Here is a vid of the problem. Thanks to anyone who can help :)
I believe the pistons automatically try to decelerate smoothly at the ends, when almost fully retracted or extended. So when near the ends the piston speed will be something like 0.5 or 0.3 times the normal piston speed.
To get rid of this smoothing you can set the piston speed very high and you won't notice any smoothing (as 0.3 times 1000 is still a speed of 300 for example). However, now the piston will just instantly follow its input and you lose a speed limit for the movement. Also, at high speeds the piston connections can become a bit wonky.
A possible solution is to put your whole piston input inside a
smooth(input,speed)
function (See FT page) now the piston will still instantly follow its input but the speed limit is applied to the input rather than to the piston itself.I hope this can help you, if you still have a question just ask :)