Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Need some logic assistance

Archive: 4 posts


I'm not 100% on the logic and combining different gates so if someone could help me figure this out it would be appreciated.

I have a helicopter with a rocket pod (1) and landing gear (2). I don't want the landing gear to be able to be down when the rocket pod is lowered because it could possibly shoot the landing gear. I figured that out where 1 can't go down without 2 going up. The problem is I can't have 2 go up without 1 coming down. I would like to be able to raise 2 and have both 1 and 2 retracted, but I still want 1 not to be able to lower without raising 2.

Is there a way to not allow 1 to work if 2 is down? Hopefully I made this somewhat clear and thanks for any help.
2011-01-30 14:42:00

Author:
Unknown User


You can accomplish this logic using an AND gate as well as a NOT gate to control the landing gear. Have the 'lower landing gear' input go to the first input of the landing gear. Then have the 'lower rocket pad' input go through the NOT gate and then into the AND gate. Finally the AND gate is wired to the landing gear piston.

Alternatively, you can make the landing gear piston weak (5 strength instead of 10) and attach an invisible, strong (10) winch to the landing gear. When a signal tells the winch to contract it will override the piston.
2011-01-30 15:52:00

Author:
dcf
Posts: 468


Thank you. I still don't quite understand how it works, but it does.2011-01-30 18:35:00

Author:
Unknown User


Glad to hear that you got it working.

You may find your understanding of logic circuits enhanced if you think of them as conditional if/then statements. In other words, if this happens then do that. The basic logic circuits are just ways of making the 'if' part of the statement more specific. In your case you only wanted the landing gear to go down if two conditions were met. Those two conditions were: 1) The lower landing gear input was active and 2) the rocket pad wasn't active. Since you wanted the landing gear to only go down when all the conditions were met we used an AND gate to combine the statements. We used the NOT gate because we wanted to know when the rocket pad wasn't active, rather than when it was active.

Hope this gives you some insight into why it works.
2011-01-30 21:48:00

Author:
dcf
Posts: 468


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.