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

Help with helicopter physics?

Archive: 8 posts


Hey there! I need some help with my helicopter. I need the helicopter to stop rotating at a certain point, but I'm not quite sure how to do that. Help please?2011-06-13 01:59:00

Author:
Unknown User


Your helicopter is rotating? Why? Do you mean the propeller on the helicopter?2011-06-13 04:34:00

Author:
riverad08
Posts: 104


Your helicopter is rotating? Why? Do you mean the propeller on the helicopter?
I think they mean the pitch.

At a certain pitch I'm guessing the rotor blades generate less lift and propel the helicopter forwards or backwards. To model this behaviour maybe the strength of the movers involved could be made proportional to the analog player input using forwards/backwards timers to give a nice weighty delay.

You could just use a stabilised cone of holo bolted to the helicopter and allow it only to pitch inside that using tags if the above doesn't work out.
2011-06-13 14:10:00

Author:
Ayneh
Posts: 2454


I'd suggest using a modification on the joystick rotator that should allow you to control the angle of the pitch in an analogue fashion within a given angle range.

If you put the left/right of the analogue stick into the left/right of the joystick rotator and feed a +100% battery signal into the up/down input of the joystick rotator then you should get the basics of the effect. This should give an allowed pitch in the range +/- 45 degrees. To make increase that range you can simply reduce the value of the battery. To decrease the range, you'll need to do some more complex modification of the analogue signal from the analogue stick (simple form would be to limit the maximum values).
2011-06-13 14:29:00

Author:
rtm223
Posts: 6497


I'd suggest using a modification on the joystick rotator that should allow you to control the angle of the pitch in an analogue fashion within a given angle range.

If you put the left/right of the analogue stick into the left/right of the joystick rotator and feed a +100% battery signal into the up/down input of the joystick rotator then you should get the basics of the effect. This should give an allowed pitch in the range +/- 45 degrees. To make increase that range you can simply reduce the value of the battery. To decrease the range, you'll need to do some more complex modification of the analogue signal from the analogue stick (simple form would be to limit the maximum values).
Whoa, that's really clever. So basically if you press left/right on the analog stick and generate a 100% signal it kind of balances out with the 100% signal being fed into the rotator in its top/down port? Meaning it can only rotate half of 90 degrees... cool!
2011-06-13 14:42:00

Author:
Ayneh
Posts: 2454


Yeah, pretty much.

It's actually what I used for the reticles in the Penguin Turf War level, although I ended up adding a crapload of complexity into that to get the two directions working exactly as I wanted them to.

One thing that can be kinda nice, in terms of a helicopter, is that if you try to throw the vehicle into a forward pitch, it should overshoot a little bit and then settle back where it should be.
2011-06-13 15:08:00

Author:
rtm223
Posts: 6497


Just putting this out here: you can stick a wobble bolt with 0% strength onto something (attached to a piece of holo for instance, that has a gyro on it, so it never counter-rotates) and use that as a physical limit to how far something can turn; then you can do whatever you want with logic and the object will never rotate outside the bolts angle.2011-06-13 22:54:00

Author:
Antikris
Posts: 1340


Oh wow, I swear in the olden days wobble bolts didn't used to limit angular position like that. Interesting....2011-06-13 23:03:00

Author:
rtm223
Posts: 6497


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.