Profile image

hinge movement after a certain speed? (Funky trees)

12.1k dINE  4.8 years ago

Hello there,

I have the following input on a hinge - rate(RollAngle)

but i only wish it to happen after a certain velocity, anyone may assist me in this one? Cheers

  • Log in to leave a comment
  • Profile image
    12.1k dINE

    @edensk @Avro683Lancaster @SnoWFLakE0s Thank you all for sharing your knowledge, both solutions work 100%.

    +2 4.8 years ago
  • Profile image
    67.1k SnoWFLakE0s

    @Avro683Lancaster
    .
    You can, use only logic to handle operations, but it makes the code far simpler if you just use selection by calculation, using 0 and 1 instead of false / true (-1, 1).

    +2 4.8 years ago
  • Profile image

    @edensk clamp01() shouldn't be necessary when using boolean operators, I would instead suggest Airspeed>X ? rate(RollAngle) : 0

    +2 4.8 years ago
  • Profile image
    16.5k edensk

    rate(RollAngle) * clamp01(IAS>x)
    x is the speed above which it activates.

    +3 4.8 years ago