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

Reset to a value (feedback loop addon tutorial)

Archive: 1 post


When using a feedback loop (https://lbpcentral.lbp-hub.com/index.php?t=86815-learn-the-feedback-loop-seriously) you may be wondering, how do I reset to a specific value instead of just to 0?

There are 2 ways

Option 1)
2 step process, first reset, then add in value, which takes 2 ticks, and can be manipulated in the process of setting (in unwanted ways due to latency)

Option 2)
Instead of ever resetting, do "(current value) - (value wanted) = (value to apply to current value)"

FOR EXAMPLE: if you want 5% but have 23% then you use the formula as such

5-23=-18 so 23-18 to get to 5

or even with negative value as current value

5+23=28

-23+28=5


Simple, but a good alternative to resetting a feedback loop (https://lbpcentral.lbp-hub.com/index.php?t=86815-learn-the-feedback-loop-seriously)

Hope this helped, Ill keep the tutorials coming
2014-05-25 23:20:00

Author:
amiel445566
Posts: 664


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.