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

How to Make an Object Stop Rotating, After it Has Turned

Archive: 11 posts


OK, long story short -
I've got my top-down rocket thing moving at a comfortable speed, turning works fine, etc, but I'm using a Joystick Rotator, and every time I release the stick, expecting the rocket to fly in the direction I had set it to, it continues to turn around, freely.

I know I need to use an Advanced Rotator set to 0, but I'm not entirely sure where I go from there.
I've tried a few things, currently, I have the Joystick, also wired to an OR gate, which is then wired to switch the Advanced Rotator on/off when the stick is pushed, however, the effects are non-existant and nothing changes, regardless of what I try. The rocket ALWAYS just slides around by itself, and it's really starting to frustrate me.

How have some of you gone about stopping objects from spinning after you release the stick?
2011-01-29 18:54:00

Author:
Ostler5000
Posts: 1017


There are a couple of ways. The traditional way is to use a gravity tweaker and turn up the dampening a bit, but what if you only want to dampen rotation and not linear movement? You can use a rotator with zero speed. Run both of your joystick outputs (u/d and l/r) into an AND gate, invert its output and hook it into the zero speed rotator. When you let go of the stick, the rotator will kick in and resist turning.2011-01-29 21:06:00

Author:
Sehven
Posts: 2188


This is similar to what I was trying with an OR gate, and still no effect. Rotator is at zero, stick outputs are wired in and the gate is inverted, and the rocket still turns freely afterwards.2011-01-29 21:24:00

Author:
Ostler5000
Posts: 1017


I forgot to mention that you need the zero speed rotator to have some reasonably high accel/decel for it to work.2011-01-29 22:01:00

Author:
Sehven
Posts: 2188


Tried that aswell. Tried them maxed, minimised and all sorts of combos, and got no change.

I just don't get what I'm doing wrong.
2011-01-29 22:09:00

Author:
Ostler5000
Posts: 1017


I just re-read your first post. Don't use an advanced rotator. Just use the one that says "rotator."2011-01-29 22:21:00

Author:
Sehven
Posts: 2188


OK, I just striped all my motion-based logic off, and tried again. I dunno what I missed last time, but it's working a little better now.

I have a new problem, though. I've now got the vehicle to stop rotating once the stick is released, but now whenever I try to turn it feels like it's sticking. Like the rotator won't switch off.
Just to clarify, it's definitely got the left sticks U/D and L/R outputs wired through an inverted AND gate to the zero rotator.
2011-01-30 00:11:00

Author:
Ostler5000
Posts: 1017


Heh. Yeah, about that... I got the gates wrong. It's an OR gate you want, not an AND. So yeah, to recap: l/r and u/d wired into an OR and set the OR to inverted and plug it into a basic rotator. Set the rotator to strength scale. Then hook up the joystick rotator normally. I've used it a couple times and I'm looking at a working rig as we speak.... as I write, so I can guarantee it should work.2011-01-30 00:45:00

Author:
Sehven
Posts: 2188


Inverted and will only turn it off if both analogue sticks are outputting true. You want it off if either of them is true so an inverted OR is appropriate in this case

Als you may find that you can't switch off basic rotator behaviour like that... Depending on settings I think it simply sets the speed to 0, so it will still hold. You may have better luck placing it in a microchip and switching that off, though i'm speculating here
2011-01-30 00:46:00

Author:
rtm223
Posts: 6497


Depending on settings I think it simply sets the speed to 0, so it will still hold.

If you set it to strength scale, it'll just keep it from rotating. It's actually pretty strong--I jumped on one end and it just pushed the whole thing down instead of spinning it.

[edit] Actually, I just tested it s'more and on/off is probably better than strength scale.
2011-01-30 00:50:00

Author:
Sehven
Posts: 2188


Huzzah! It works!

Thank you very much for your help.
2011-01-30 15:24:00

Author:
Ostler5000
Posts: 1017


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.