Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Creating analogue extension of a piston?
Archive: 7 posts
A long time ago I suggested (https://lbpcentral.lbp-hub.com/index.php?t=32906-Piston-Bolt-input-quot-Extension-quot&highlight=piston+extension) an extra option for pistons, where you could give them an analogue signal, and they would extent (or retract) to the same degree as the signal strength. An example in LBP2 could be; I have a piston (10 max, 0 min lengths) and want it to be extended to a length of 8. Then I simply attach a battery with 80% strength and set the pistons Input Action to "Extend". This has not yet been implemented, and at the time of suggestion people assured me, we would be able to mimic this using Movers. I now have tried and failed I have been fiddling with this piece of logic: http://if.lbp.me/img/ft/08f0c71e19b94597bd31cf28f335eb77366807bd.jpg It works by detecting the distance between the Tag and the Tag Sensor. Then it compares the signal created by the Tag Sensor with the signal from the Analogue Stick, and send the signal to the Mover. When these are not equal, the top piece of holo will move. Down if the Analogue Stick signal is greatest, and up if the Tag Sensor signal is greatest. When they are equal the holo will not move. (The piston have 0% Strength, and is just there to confine the holo in 1 dimension) My issue is: This is only half of the signal from the vertical analogue movement. I also want movement when the stick is pressed upward. If I don't use a splitter, there will be no difference between the negative and positive tilting of the stick. I figured I had to use two pistons and two pieces of holo (simply doubling the detection mechanic, using unique Tags and Tag Sensors), one for each component in the y-axis. The problem is that that case, the topmost mover will act as Dark Matter when not receiving a signal, and therefore lock a lower mover in place causing the device to fail. Does anyone know how I can fix this? Ideally I want a piece of holo to be moving in two dimensions (x,-x,y and -y) reflecting precisely how you tilt the analogue stick, so If someone knows a complete fix, I would be more than grateful! Currently I have managed to do this not using pistons, but instead using a digital coordinate system (http://i1.lbp.me/img/ft/fd165973cbe9be7d7e97e6b5d6003519ce8a1473.jpg). Regrettably this causes movement to be in "pixels", and consumes quite a bit more Thermo than I would like... Sincerely Slaeden-Bob | 2011-02-10 10:50:00 Author: Slaeden-Bob Posts: 605 |
Use direction splitter to isolate minus and plus side. Then divide (http://www.lbpcentral.com/forums/entry.php?2409-Analogue-Logic-5-Division-amp-Multiplication) both sides by 2. (if you want make it fast you need to divide it twice by tree and multiply by 2) When plus side is not 0 or both are 0 add (http://www.lbpcentral.com/forums/entry.php?2107-Analogue-Logic-2-Sorting-amp-Addition) 50 to it. | 2011-02-16 14:02:00 Author: waD_Delma Posts: 282 |
Use direction splitter to isolate minus and plus side. Then divide (http://www.lbpcentral.com/forums/entry.php?2409-Analogue-Logic-5-Division-amp-Multiplication) both sides by 2. (if you want make it fast you need to divide it twice by tree and multiply by 2) When plus side is not 0 or both are 0 add (http://www.lbpcentral.com/forums/entry.php?2107-Analogue-Logic-2-Sorting-amp-Addition) 50 to it. UGH Perhaps you could be a bit more specific? If I ever manage to get a signal generated, what would I do with it? Do I send it to a mover? To a piston? To something entirely different? Thanks in advance | 2011-02-16 14:32:00 Author: Slaeden-Bob Posts: 605 |
Perhaps you could be a bit more specific? Its same method as you tried to use. | 2011-02-16 14:37:00 Author: waD_Delma Posts: 282 |
Its same method as you tried to use. So I just keep going with the four piston setup (one for x,-x,y and -y)? This way the movers in the outer segments wont lock the inner segments in place? Thanks a bunch! I'll try it out right away EDIT: My math skills may be a bit rusty, but how can you get "devision by two" by dividing by three twice and then multiplying by two? To me that is more like a division by 4.5? (((N/3)/3)x2)=((N/9)x2)=N/4.5. Am I just too old for math? | 2011-02-16 14:47:00 Author: Slaeden-Bob Posts: 605 |
So I just keep going with the four piston setup (one for x,-x,y and -y)? You need only one mover for one axis. My math skills may be a bit rusty, but how can you get "devision by two" by dividing by three twice and then multiplying by two? whoops! What I were thinking? Sorry. So you cannot do it with max speed. | 2011-02-16 15:45:00 Author: waD_Delma Posts: 282 |
No problem man! I really appreciate your contribution I'll fiddle some more with this, even though I have a bit of a hard time understanding rtm's crazy logic ^^ | 2011-02-16 15:59:00 Author: Slaeden-Bob Posts: 605 |
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.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.