Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Add todo on air resistance
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubelotix committed Nov 14, 2023
1 parent c5532ab commit 40b36ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minecraft-server/src/entities/tasks/newton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ pub async fn newton_task<T: EntityDescendant>(h: Handler<T>, mut server_msg_rcvr
position += new_velocity;
}

// TODO(feat): Apply air resistance to x and z velocity
// Keep in mind that velocity shouldn't flicker when constantly kept up by another task but slowed down in this task

// Mutate entity
// TODO(correctness): Before modifying entity values, we should ensure the original values we based the changes on are still the same
if changes.nothing_changed() {
Expand Down

0 comments on commit 40b36ae

Please sign in to comment.