How do I invert a number without 0 being inverted?
I'm trying to invert the direction of the Y axis on the the advanced mover.
I at first thought using the signal manipulator would work using the invert input mode but that inverts the 0 to a 1 when their is no input and so the object moves without any input.
I thought about using other logic things like and or gates but they are all 0 and 1 values. I know what sort of logic i need but I'm not sure how to do it in Dreams.
Something like If value is equal to 0 keep value 0 else let value through.
Or maybe there is another better way.
-
Try this: Have a Slider which max value is 1 and min value is -1. Now wire it to the input Port for your Y value.
Hover on the Port (the tab where you wire the input) and press Shift+X to cycle through several blend modes. Set it to "Wire Blend - Modulate". Its function will be clear to you with this example.
Set the Y speed to your maximum positive number, for example 10 m/s. Now when your slider goes to 1, your Y speed will be 10 m/s. When the slider is -1, the value will be -10 m/s.
I hope this is useful,
Pablo -
It seems I found another way, I just reversed the speed on the Y axis.
Thanks for the help.
댓글을 남기려면 로그인하세요.