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

#1

## Did you know? (Adv. Movers & precision)

**Archive:**4 posts

The LBP2 engine is incredibly precise in its calculation of movement. I did some tests today and confirmed this useful piece of information: An advanced mover with a speed of 30, acceleration & deceleration of 100%, working on an object with 100% antigravity, will move the block EXACTLY 1 large grid block per frame. The math here is easy; speed of advanced movers is measured in large grid blocks per second, or 10 units/s, and LBP runs at 30FPS, so to make it move 1 whole block per second we need it to be set to move at 30 blocks per second. Now for my test I had a block with such an Adv. mover, and a self-resetting counter which I triggered manually, so I could power the mover for 1 frame only at will. Then I made a sieve of dark matter blocks; every other large grid space was dark matter. The idea was if I couldn't move the moved block through this sieve of dark matter after any number of movements, then the mover was not precise. Lo and behold though, after more than 30 'moves', it still was perfectly on the grid and able to move through my sieve. So what is a good application of this? Well, say you are making a tile-based game, and you need to move a character exactly 5 blocks - you need to trigger an Adv. Mover with the above settings 5 times in a row, or once with a setting of 90 and once 60. That's where the bum part comes in - AFAIK you can't go beyond the maximum speed setting of 100, so no more than 3 grid blocks per frame. There may be tricks around this, and if you know of any, please post them here! I tried putting two Adv.Movers on to see if it would go twice as far, but that sadly didn't work. TL;DR: Adv mover set to 30 will move a block EXACTLY one grid space, with no precision degradation. Oh, also the simple Mover does NOT work the same way; for some reason the Mover requires 15 frames to reach a precise grid space location, and this is 2 spaces away (travelled a unit distance of 20). That means it travels a distance of 1.333 per frame with a speed value of 30, as opposed to the Adv Mover which travels 10 units per frame with the same speed value. I thought this was very bizarre, but I'm not interested to look into reasons why it might have such a drastic speed calculation difference right now. | 2011-02-24 22:36:00Author: merkaba48Posts: 79 |

That's very interesting, thank you! | 2011-02-24 23:25:00Author: Stinkin MushroomPosts: 117 |

Yes indeed, interesting. Good find, pretty smart of you. | 2011-02-26 01:36:00Author: KrondeloPosts: 136 |

Nice discovery! | 2011-02-26 03:39:00Author: vicanderPosts: 13 |

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.