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

Using a Speed Signal to Control Length (or Angle), How?

Archive: 8 posts


Basically this is what I want.

If something is running at 50% of it's maximum speed I want that to translate to a piston (for example) extending to 50% it's maximum length. Ideally though, instead of speed controlling length it would control the angle of an object instead.

I can already achieve this but the only 2 methods I can think of myself involve overly complicated LBPesque logic. Surely there must be a more simple way.
2011-02-09 01:15:00

Author:
SR20DETDOG
Posts: 2431


I dont know, i'll have to check, but there might be a positional setting on the piston. but other than that, you could have a timer go on for half the time it takes the piston to go to it's maximum length, so lets say, the time on the piston is two seconds, set the timer for 1 second and it will stop at half its length. also if you want it to have different positions, attach an "or" switch to the piston, and have another timer go to .5 seconds for 25% its length, etc. , and then you could have different lengths for other purposes.
hope this helps.
2011-02-09 02:30:00

Author:
Unknown User


Hmm never thought of using timers, good idea but (there's always a but ) using this sort of setup won't for one main reason, There can'y be any type of time delay. Preferably there wouldn't be an 'levels' either. With this setup I would need multiple timers to get mltiple lengths, meaning acuracy would suffer.

Thanks anyway
2011-02-09 02:46:00

Author:
SR20DETDOG
Posts: 2431


I can tell you how to control the angle relative the level, but not relative to an object. What I mean by that is up will always be up even if your object turns upside down or something.

Start with a joystick rotator and slap it on your object. Now if you want to allow it 180 degrees rotation left/up/right, hook your speed signal into the left side of the rotator and into a NOT gate and plug the NOT into the top of the the rotator. When there's no signal, the object will point straight up but as you increase the signal toward the left/right (negative signal for left, positive for right), the value will be subtracted from the UP signal, allowing it to swing to the left or right. If you want less than 180 degrees of rotation, you can leave out the NOT gate and plug a battery into the top of the rotator: you can adjust the battery's strength to adjust how much it can swing.
2011-02-09 07:30:00

Author:
Sehven
Posts: 2188


I can tell you how to control the angle relative the level, but not relative to an object. What I mean by that is up will always be up even if your object turns upside down or something.
Darn


Start with a joystick rotator and slap it on your object. Now if you want to allow it 180 degrees rotation left/up/right, hook your speed signal into the left side of the rotator and into a NOT gate and plug the NOT into the top of the the rotator. When there's no signal, the object will point straight up but as you increase the signal toward the left/right (negative signal for left, positive for right), the value will be subtracted from the UP signal, allowing it to swing to the left or right. If you want less than 180 degrees of rotation, you can leave out the NOT gate and plug a battery into the top of the rotator: you can adjust the battery's strength to adjust how much it can swing.
I think I understand this, but I'll have to build it to be sure. If it does work how I think it does I'm pretty sure I can still use it to do what I want. Thanks!
2011-02-09 10:08:00

Author:
SR20DETDOG
Posts: 2431


Darn

Yeah, I went crazy trying to figure out a way to get directional control relative the object (was trying to use it for vehicle steering).


I think I understand this, but I'll have to build it to be sure. If it does work how I think it does I'm pretty sure I can still use it to do what I want. Thanks!

Hope it works for you. Glad I could help.
2011-02-09 18:17:00

Author:
Sehven
Posts: 2188


If something is running at 50% of it's maximum speed I want that to translate to a piston (for example) extending to 50% it's maximum length.

I know how to make this one.

1. Create tag to place where you want object to move.

2. Put microchip to object you want to move.

3. Add a anti-gravity tweaker to that microchip and tweak it to 100% anti-gravity and 90% dampening. I don't know if this is necessary as I haven't tested without.

3. Put a mover inside the microchip and set it to a speed scale.

4. Create tag sensor with radius as big as far you want the object to move.

5. Create Direction Combiner and connect tag sensor to plus input of it.

6. Now just connect output you want to other input of Combiner and enjoy.
2011-02-09 18:53:00

Author:
waD_Delma
Posts: 282


Yeah, I went crazy trying to figure out a way to get directional control relative the object (was trying to use it for vehicle steering).

Hope it works for you. Glad I could help.
Yup, I went crazy too and I'm trying to use it for vehicle steering as well Although, I just wanted a general solution because I remember I needed for this in LBP for something. I think I can make this work though, it won't be perfect, but it should still work alright.


I know how to make this one.

1. Create tag to place where you want object to move.

2. Put microchip to object you want to move.

3. Add a anti-gravity tweaker to that microchip and tweak it to 100% anti-gravity and 90% dampening. I don't know if this is necessary as I haven't tested without.

3. Put a mover inside the microchip and set it to a speed scale.

4. Create tag sensor with radius as big as far you want the object to move.

5. Create Direction Combiner and connect tag sensor to plus input of it.

6. Now just connect output you want to other input of Combiner and enjoy.
I tried reading this, but, it's too early in the morning and I didn't take any of it in I'll come to it later today.
2011-02-09 22:28:00

Author:
SR20DETDOG
Posts: 2431


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.