Physion

  • Increase font size
  • Default font size
  • Decrease font size
Welcome, Guest
Username Password: Remember me

Gravity-Magnet Function-Script (Finally!)
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Gravity-Magnet Function-Script (Finally!)

Gravity-Magnet Function-Script (Finally!) 5 years, 11 months ago #669

This is a work in progress, but is pretty good at the moment. Have been delayed for
many personal reasons, and then I decided I didn't like an aspect of the Function, so
I completely re-wrote a few sections, and added better functionality.

This is to simulate Gravity and Magnetism between objects. Files found at....

[EDIT] All working again now. Download again....
workingfiles.netii.net/PhysionStuff/GravityMagnet/

There is a .ZIP file included, which includes all the other files, if prefered.
Please read the .PDF files too, as they explain important information as well.
Have a good day.
1x1 square diag = root-2. Cube diag = root-3. Beautiful !
Last Edit: 5 years, 11 months ago by Glenn555.

Re: Gravity-Magnet Function-Script (Finally!) 5 years, 11 months ago #670

  • Lynxx
  • OFFLINE
  • Gold Boarder
  • Java/C#-Developer
  • Posts: 223
Nice, but the scene with the 3 balls crashes Physion, it shortly shows Red-Ball Force = NaN and then crash ...
Infinity is vast, especially near end.
bye, Lynxx

Re: Gravity-Magnet Function-Script (Finally!) 5 years, 11 months ago #672

Oops !!!
Was working. Will check it immediately....
1x1 square diag = root-2. Cube diag = root-3. Beautiful !

Re: Gravity-Magnet Function-Script (Finally!) 5 years, 11 months ago #673

Have fixed it now. (Will have to download again).
I had made some last minute changes, (oh-oh), to the way it handles things if
the target is not a Dynamic body, and how it simulates the Mass calculations !
So the Function itself was faulty. (Now fixed).
And I made a change to the Demo-1 file as well, because I had some unrealistic settings!
Hope it is ok now. (The link above is still valid. Just new files there.)
1x1 square diag = root-2. Cube diag = root-3. Beautiful !

Re: Gravity-Magnet Function-Script (Finally!) 5 years, 11 months ago #674

Have had to make another quick change to the Script, but that's it now !
Sorry! (Corrected my edit!, to fix Circle Mass properly, sigh..)
1x1 square diag = root-2. Cube diag = root-3. Beautiful !
  • Page:
  • 1
Moderators: Glenn555
Time to create page: 0.13 seconds