Profile image

hinge movement after a certain speed? (Funky trees)

12.0k dINE  4.1 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.0k dINE

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

    +2 4.1 years ago
  • Profile image
    66.6k 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.1 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.1 years ago
  • Profile image
    16.4k edensk

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

    +3 4.1 years ago