Save unfinished work

This commit is contained in:
Tipragot 2024-01-07 11:29:48 +01:00
parent f9d6f39dd6
commit ee0fe070f8

View file

@ -173,7 +173,6 @@ def move_entity(entity: Entity, movement: Vec2, disable_callback: bool = False):
if normal.y != 0:
movement.y *= -1
entity[Velocity].y *= -1
# movement /= entity.get(Velocity, Vec2(1))
if obstacle is not None and not disable_callback:
if not entity.get(
CollisionHandler, CollisionHandler(lambda e, o: True)
@ -183,7 +182,6 @@ def move_entity(entity: Entity, movement: Vec2, disable_callback: bool = False):
CollisionHandler, CollisionHandler(lambda e, o: True)
).callback(obstacle, entity):
break
# movement *= entity[Velocity]
counter += 1