From f42d630544165d11a544224ac273d6aaf89d8095 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 29 Aug 2022 20:41:01 -0500 Subject: Physics (#11) * Put physics module in azalea-entity * port aabb * add more stuff to PositionXYZ * azalea-physics * important collision things * more physics stuff * backup because i'm about to delete shapes * more shape stuff * CubeVoxelShape * no compile errors??? insane * impl VoxelShape for ArrayVoxelShape * Shapes stuff * collide_x but it doesn't work yet * binary_search * it compiles * Entity has bounding box * Update discrete_voxel_shape.rs * Entity::make_bounding_box * ok i'm about to merge az-entity and az-world might be a terrible idea which is why i'm committing first * ok so i moved entity to world * on_pos and move_entity compiles * add send_position * move collision stuff to collision module in az-physics * dimension is no longer an Option * start trying to do collision for the client * collision works :tada: * start adding palette resizing * get_and_set (pain) * it compiles but probably won't work * add a test * remove printlns * add more tests for palette stuff * ClientboundMoveVec3Packet -> ClientboundMoveEntityPosPacket i think i changed this on accident once * palette resizing works todo: remove the printlns * Remove printlns in palette.rs * fix issues from merge * fixes + work a bit more on physics * Better entities (#19) * well it compiles * add tests to entity storage * add suggestions in azalea-brigadier * this probably causes ub * fix brigadiersuggestions * get rid of entityid * test From for EntityRef * don't mention other libraries since there's too many * fix warnings * do todos in brigadier suggestions * work on physics * more physics stuff * remove trait feature on az-block i think rust gets confused and compiles the macro without the feature * bump ahash * aes tests in az-crypto * optimize aes's deps * fix crashes * fix section_index for negative numbers and test * fix BlockPos protocol implementation * remove some debug prints * prepare to add ai_step * make ai step work * clippy --- Cargo.lock | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index af1f9712..97bcb5b3 100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -21,10 +21,11 @@ dependencies = [ [[package]] name = "ahash" -version = "0.7.6" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +checksum = "57e6e951cfbb2db8de1828d49073a113a29fd7117b1596caa781a258c7e38d72" dependencies = [ + "cfg-if", "getrandom", "once_cell", "version_check", @@ -136,9 +137,10 @@ version = "0.1.0" dependencies = [ "anyhow", "azalea-auth", + "azalea-block", "azalea-core", "azalea-crypto", - "azalea-entity", + "azalea-physics", "azalea-protocol", "azalea-world", "thiserror", @@ -171,17 +173,6 @@ dependencies = [ "uuid", ] -[[package]] -name = "azalea-entity" -version = "0.1.0" -dependencies = [ - "azalea-buf", - "azalea-chat", - "azalea-core", - "azalea-nbt", - "uuid", -] - [[package]] name = "azalea-language" version = "0.1.0" @@ -204,6 +195,15 @@ dependencies = [ "num-traits", ] +[[package]] +name = "azalea-physics" +version = "0.1.0" +dependencies = [ + "azalea-block", + "azalea-core", + "azalea-world", +] + [[package]] name = "azalea-protocol" version = "0.1.0" @@ -216,8 +216,8 @@ dependencies = [ "azalea-chat", "azalea-core", "azalea-crypto", - "azalea-entity", "azalea-nbt", + "azalea-world", "byteorder", "bytes", "flate2", @@ -244,8 +244,8 @@ version = "0.1.0" dependencies = [ "azalea-block", "azalea-buf", + "azalea-chat", "azalea-core", - "azalea-entity", "azalea-nbt", "log", "nohash-hasher", @@ -283,6 +283,7 @@ version = "0.1.0" dependencies = [ "azalea-client", "azalea-core", + "azalea-physics", "azalea-protocol", "tokio", "uuid", -- cgit v1.2.3