emnewton-like system

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Post Reply
Victorcg
Posts: 91
Joined: 26 Jun 2009, 10:59

emnewton-like system

Post by Victorcg » 12 Oct 2009, 14:47

Hi all. Just trying to make particles moving around some orbit, just like here
http://www.mootzoid.com/html/XsiCorner/emNewton.html

I don't want to use sin,cos functions and want to make it using forces.
So I have tangent force, but particles moving not by the circle traectory, but just like spiral away from center.
I tryed to use the force, to center (F=m*v*v/R), but it semms not ot work.

Any suggestions?
Thank You
Sorry for my English.

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 17:25
Location: Siegen/Germany
Contact:

Re: emnewton-like system

Post by owei » 12 Oct 2009, 17:16

Hi..!

Well, difficult to tell...but have you took a look at this video:



It might give you some hints...

Perhaps attach your scene, so one could look over it..

cheers,
oliver

Victorcg
Posts: 91
Joined: 26 Jun 2009, 10:59

Re: emnewton-like system

Post by Victorcg » 13 Oct 2009, 00:21

Thank You for answer. Yes, I watched that video. But there is the problem: all particles are aimed to the same radius, and drag force is not the best solution, I guess... I've achieved some results and will upload scene tomorrow. I've used that formula for centrifugal force (F=m*v*v/R), but it should be divided by 2 more, by my experience (I don't know why), and the velocity is tangent to radius. But at the fast speed some particles still leave their orbit. I forgot my scene at another place, so I will upload it a little bit later. Thank You.

Victorcg
Posts: 91
Joined: 26 Jun 2009, 10:59

Re: emnewton-like system

Post by Victorcg » 13 Oct 2009, 09:48

Here is the scene. Approximately at 200th frame particles start to leave the orbit. :(
Attachments
testUFF3.rar
(121.15 KiB) Downloaded 140 times

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 17:25
Location: Siegen/Germany
Contact:

Re: emnewton-like system

Post by owei » 13 Oct 2009, 10:35

Hi..!

Just a short look over it.
When you check the closest position on geometry, don´t use the cut-off distance. This causes the particles to fly away.
As far as I can see, you consider the mass of the particles, but not the attraction force of your gravitational center. The faster the particles get, the bigger gets the centrifugal force that drives them away, so they will of course leave the orbit over time. You have to build in a force, that compensates this.
Adding simple pointforce might solve this....

EDIT:
And set the velocity BEFORE you set the forces...!!

just some thoughts.. ;)

oliver

Victorcg
Posts: 91
Joined: 26 Jun 2009, 10:59

Re: emnewton-like system

Post by Victorcg » 13 Oct 2009, 11:36

Thank You. I'll give it a try. I just don't understand what do you mean under "compensate force". I thought that the centrifugal force is the compensate force. Am I wrong?

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 17:25
Location: Siegen/Germany
Contact:

Re: emnewton-like system

Post by owei » 13 Oct 2009, 12:00

...yes...I just thought of some forces for better control of this effect...but changing the order of giving the force and setting velocity is the biggest part, I think.. ;)

Victorcg
Posts: 91
Joined: 26 Jun 2009, 10:59

Re: emnewton-like system

Post by Victorcg » 13 Oct 2009, 13:18

OK. I've tryed to disable cutoff distance and replace velocity with forces. Particles stopped to fly away. But I can't get constant orbit for each particle :(

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 17:25
Location: Siegen/Germany
Contact:

Re: emnewton-like system

Post by owei » 13 Oct 2009, 13:42

..oK, so I don´t understand what you are after. As all particles travel at the same speed around the center, the particle near the center have to travel a shorter distance, so they will orbit "faster" than the particles on the outer orbit...I´ve attached a modified scene...

Perhaps try to explain once more the effect you try achieve..

What do you mean with constant orbit..? The distance between particle and center (per definition)..?

cheers,
oliver
Attachments
testUFF3_owei.rar
(130.27 KiB) Downloaded 145 times

Victorcg
Posts: 91
Joined: 26 Jun 2009, 10:59

Re: emnewton-like system

Post by Victorcg » 13 Oct 2009, 13:55

Yes! Exactly! the distance between particle and center. Again sorry for my english.
So if I set the speed about 500 in your scene the orbit changes :(

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 17:25
Location: Siegen/Germany
Contact:

Re: emnewton-like system

Post by owei » 13 Oct 2009, 16:13

..ok..that can´t work that way, I think. Your are doing a simulation. That means, that this system has to find it´s balance. By setting the velocity and using this in the next step, the system won´t get in balance. Considering, that the tangent/cross product operation just delivers an aproximation to something like a perfect circular orbit. Those flase values add up and cause the system to expand endlessly...so, you might think of an other solution...
If I got time, I´ll think about that further ;)

Victorcg
Posts: 91
Joined: 26 Jun 2009, 10:59

Re: emnewton-like system

Post by Victorcg » 13 Oct 2009, 17:17

Thank You! I think I should do it trigonometrically maybe :)

Post Reply

Who is online

Users browsing this forum: No registered users and 61 guests