openai / multiagent-particle-envs

Code for a multi-agent particle environment used in the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments"
https://arxiv.org/pdf/1706.02275.pdf
MIT License
2.27k stars 786 forks source link

Can I change the shape of landmarks #72

Open AmulyaReddy99 opened 4 years ago

AmulyaReddy99 commented 4 years ago

I am trying to make few landmarks as stationary lines and few as rectangular blocks. I could change render() function to get either everything as square or circle by editing line 231 of environment.py as below. But this can either be circle or rectangle. Can I have a combination of both.

                if block:
                    geom = rendering.make_polygon(v)
                else:
                    geom = rendering.make_circle(entity.size)