Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

We know that we can achieve to a box contained two spheres by the code:

Graphics3D[Table[Sphere[{i, Mod[i^2, 10], Mod[i^3, 12]}], {i, 2}]]

enter image description here

How can the left sphere move in a vector path to the right of the box and the right one move to the left of the box simultaneously?

share|improve this question

closed as too broad by Öskå, m_goldberg, RunnyKine, rasher, bobthechemist Jul 11 at 0:00

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
That is I'm afraid a huge work :) Have you tried anything? –  Öskå Jul 10 at 13:50
    
Unfortunately No, I just wanted to simulate moving gas molecules in a box. –  mostafa Jul 10 at 13:52
    
Do they need to bounce as well? –  Öskå Jul 10 at 13:54
    
And I guess two balls can't intersect? –  Öskå Jul 10 at 13:58

Browse other questions tagged or ask your own question.