APS Excellence in Physics Education Award November 2019
Science SPORE Prize November 2011
The Open Source Physics Project is supported by NSF DUE-0442581.
Return to the variable size of particle set objects? thread Login to post to this thread
Is it possible to use an array for the size of individual objects in a particle set in the 2-D drawing pane?I'm creating a model of an n-body simulation with collisions, and would like to have merged objects appear larger based on their mass.
Yes, it is. Just link the Size X and Size Y properties to an array of doubles, each with the size for the corresponding object on the set. Then change the size programmatically to whatever you want. That should do it.Paco