用python进行人群模拟

时间:2018-03-11 10:53:00

标签: python

是否有可能创建人群模拟,知道我是python的初学者?

enter image description here

2 个答案:

答案 0 :(得分:1)

是的,你绝对可以。您可以开始使用 pygame 等模块。

同时结帐blender

答案 1 :(得分:1)

是的,你可以。类似的工作已编码,您可以在此处看到:https://github.com/mattbierbaum/moshpits

git clone https://github.com/mattbierbaum/moshpits
cd moshpits && make
...

./entbody

enter image description here

cd moshpits/scripts
python utilities.py all

    This is going to take a while...
    Now building entbody
    gcc -O3 -Wall main.c -o entbody -lm
    rm -f entbody
    gcc -O3 -Wall main.c -o entbody -lm
    /home/mikel/Documents/stackoverflow/moshpits/scripts
    Now building entbody
    gcc -O3 -Wall -DPLOT main.c plot.c -o entbody -lm -lGL -lGLU -lglut 
    rm -f entbody
    gcc -O3 -Wall -DPLOT main.c plot.c -o entbody -lm -lGL -lGLU -lglut 
    /home/mikel/Documents/stackoverflow/moshpits/scripts

enter image description here

你应该查看论文"重金属音乐会上的Moshers Collective Motion",它有多种语言的实现,你可以轻松找到:https://arxiv.org/abs/1302.1886