clement-moulin-frier / vivarium

MIT License
6 stars 0 forks source link

[WIP] Corentin/different collision params per entity #75

Closed corentinlger closed 5 months ago

corentinlger commented 7 months ago

Description

Assign collision parameters to each entity (instead of having global ones for all agents and objects). From what I understand, the epsilon and alpha values of an entity solely influence its own reaction during collisions. This means that if two agents collide, the epsilon value of one agent will only impact how much that specific agent is pushed, without affecting the collision behavior of the other agent.

Also made me realize the get_default_state method in vivarium/controllers/converters.py is no longer usefull with the new init functions (make one less place where we need to define default values)

TODO :

Change the init functions to enable specifying custom epsilons and alphas for agents and objects Try to tune the values to make the behaviors more realistic (for example custom values for agents and objects)

Related Issue (if applicable)

59

How to Test

Launch the server

python3 scripts/run_server.py

Launch the Panel interface

panel serve scripts/run_interface.py --autoreload

Screenshots (if applicable)