Profile image

Yaw & GearDown

28.8k Type2volkswagen  4.3 years ago

Id like to get these to work on a rotator for Nose Wheel Steering so that when the Gear is down the steering works and when the gear is up, it doesn't, I've tried:

Yaw & GearDown
clamp(Yaw, -1, 1) & GearDown
abs(Yaw, -1, 1) & GearDown
lerp(-1, 1, Yaw) & GearDown

and them with XXXXXXX & LandingGear

all of these froze the Rotator or gave a "1" output, causing the rotator to go to +1.
What am I missing?

  • Log in to leave a comment
  • Profile image

    clamp01(GearDown) * Yaw

    4.3 years ago
  • Profile image

    Thanks, now my plane taxi's straight

    4.3 years ago
  • Profile image
    67.1k SnoWFLakE0s

    Yaw isn't a boolean.. It's a number. That explains the incorrect interaction with the and operator.

    For disabling something when a condition isn't fulfilled, you want to do something I call clamping a boolean. In this context, since we want Yaw input only when GearDown = true, we can simply do Yaw*clamp01(GearDown)- to which when GearDown = false, the clamp01() function will output 0, making any input from Yaw multiply out to 0.

    +2 4.3 years ago
  • Profile image

    @WNP78
    @SnoWFLakE0s

    4.3 years ago