Sam f0576e52d6
Some checks failed
Build Simulation and Test / Run All Tests (push) Failing after 35s
Add rotation and behavioral model to entities, implement DefaultCell entity
2025-06-14 17:30:31 -05:00

2 lines
167 B
Python

def get_distance_between_objects(object_a, object_b):
return ((object_a.position.x - object_b.position.x)**2 + (object_a.position.y - object_b.position.y)**2)**0.5