Profile image

How do I make a piston not have smoothing at the ends?

49.3k PlaneFlightX  3.1 years ago

Rotators stop when they reach the desired location. Pistons have smoothing at the ends.

My flaps clip through the wing on retracting because the piston is smoothing out and the flap rotators reach the location too soon, and the flaps clip through the speedbrake (which is a few nudges above the flaps).

Edit: edensk came up with some code.

set the piston's speed to a very high amount (100-200%), and use the following code to adjust the actual speed:
smooth(Input,1/X)
Replace Input with whatever you have as the input, and X with the desired time it takes for the piston to extend/retract fully.

  • Log in to leave a comment
  • Profile image
    16.5k edensk

    set the piston's speed to a very high amount (100-200%), and use the following code to adjust the actual speed:
    smooth(Input,1/X)
    Replace Input with whatever you have as the input, and X with the desired time it takes for the piston to extend/retract fully.

    Pinned 3.1 years ago
  • Profile image

    @edensk k, but, i put it where?

    2.3 years ago