Save unfinished work
This commit is contained in:
parent
f9d6f39dd6
commit
ee0fe070f8
|
@ -173,7 +173,6 @@ def move_entity(entity: Entity, movement: Vec2, disable_callback: bool = False):
|
||||||
if normal.y != 0:
|
if normal.y != 0:
|
||||||
movement.y *= -1
|
movement.y *= -1
|
||||||
entity[Velocity].y *= -1
|
entity[Velocity].y *= -1
|
||||||
# movement /= entity.get(Velocity, Vec2(1))
|
|
||||||
if obstacle is not None and not disable_callback:
|
if obstacle is not None and not disable_callback:
|
||||||
if not entity.get(
|
if not entity.get(
|
||||||
CollisionHandler, CollisionHandler(lambda e, o: True)
|
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)
|
CollisionHandler, CollisionHandler(lambda e, o: True)
|
||||||
).callback(obstacle, entity):
|
).callback(obstacle, entity):
|
||||||
break
|
break
|
||||||
# movement *= entity[Velocity]
|
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue