Skip to content
Snippets Groups Projects
Commit 6f4097a7 authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Recursive pushing? Feels a bit blocking when too many other cooks are present

parent 391b1f08
No related branches found
No related tags found
1 merge request!16Resolve "Fix player collision: Can push other players into each others, can push players out of the world"
Pipeline #42246 passed
......@@ -229,7 +229,8 @@ class Environment:
pushing_vector = pushing_vector / np.linalg.norm(pushing_vector)
old_pos_other = collided_player.pos.copy()
collided_player.move(pushing_vector * (collided_player.move_dist / 2))
self.perform_movement(collided_player, pushing_vector)
# collided_player.move(pushing_vector * (collided_player.move_dist / 2))
if self.detect_collision_counters(
collided_player
) or self.detect_collision_world_bounds(collided_player):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment