Profile image

hinge movement after a certain speed? (Funky trees)

8,647 NAD  8 months 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
    8,647 NAD

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

    +2 8 months ago
  • Profile image
    35.3k 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 8 months ago
  • Profile image

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

    +2 8 months ago
  • Profile image
    11.5k edensk

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

    +3 8 months ago