metarmask / teardown

Tools for parsing and converting Teardown game saves
GNU General Public License v3.0
12 stars 3 forks source link

No steer, drive or travel on wheels #9

Closed TTFH closed 3 years ago

TTFH commented 3 years ago

This is where those parameters are located on the binary files: https://github.com/nxhu64/TDU/blob/main/TDU/Entities.h#L192

Drive is in range 0.0 - 1.0 Steer is in range -1.0 - 1.0 Travel are two values

metarmask commented 3 years ago

It should be noted that those structs aren't what is directly saved. They're still helpful though - thanks.

each object can choose freely what to save, and might leave out cached state or temporary acceleration structures.

-- Dennis Gustafsson

Another example are booleans which are saved with one byte in the save but four bytes in memory.