ForLoveOfCats / SkyOfSteel

Git repo and bug tracker for SkyOfSteel
https://skyofsteel.org
MIT License
42 stars 10 forks source link

Item drops/pickups #33

Closed ForLoveOfCats closed 5 years ago

ForLoveOfCats commented 5 years ago

Items need to be able to be:

And of course this all has to be network safe

ForLoveOfCats commented 5 years ago

Very basic dropping https://github.com/ForLoveOfCats/SkyOfSteel/commit/a6d43ef27ec125823084480c836d194b1c9ce87c

No pickup, physics, and not networked

ForLoveOfCats commented 5 years ago

The physics are pretty much good. They take into account the player momentum, look angle, and can slide on slopes.

ForLoveOfCats commented 5 years ago

The grid updating system was added in and is now used to re-enable physics on dropped items when the Structure they are resting on is destroyed.

ForLoveOfCats commented 5 years ago

Items are now referenced in the ChunkClass instance for the chunk they are in (and updates this information when moving between chunks). This is so that the chunk can be used to determine if a dropped item should be network loaded/unloaded.

ForLoveOfCats commented 5 years ago

Proper sliding physics as of https://github.com/ForLoveOfCats/SkyOfSteel/commit/07a4815f1cf3a2cba667fd1f66d62e0dbaea715e

ForLoveOfCats commented 5 years ago

Picking items up was added with https://github.com/ForLoveOfCats/SkyOfSteel/commit/e41e7a20527d4023d7873f5934aa765b3df091d3 and works in multiplayer

ForLoveOfCats commented 5 years ago

Items clumping together on the ground will be done after 0.1.2

Marking this as completed