英文:
How can I dynamically change the size of an agent's icon in a 3D Display in Repast Simphony?
问题
我正在尝试以编程方式更改代理的3D模型大小,但似乎没有方法,有任何想法吗?
我尝试让代理扩展DefaultStyle3D类,但那里只有一个方法来更新缩放因子,顺便说一下,这似乎对模拟没有任何影响。
英文:
I am trying to change the 3D model's size of an agent programmatically but it doesn't seem to be a way, any ideas?
I tried making the agent extend the DefaultStyle3D class but there only is a method to update the scaling factor, which by the way does not appear to have any effect on the simulation.
答案1
得分: 1
我发现,通过进一步的研究,我找到了Repast,它允许您将代理的某个方法设置为缩放因子,以允许其值的动态变化,如参考手册中所指定的 https://repast.github.io/docs/RepastReference/RepastReference.html#_displays 第11.7节所述。
英文:
With a little more research I found that Repast lets you set a method of the agent as a scaling factor to allow the dynamic change of its value, as specified in the reference manual https://repast.github.io/docs/RepastReference/RepastReference.html#_displays section 11.7
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论