Browse Search Popular Register Upload Rules User list Login:
Search:
Snapping Spaghetti

Image:
screenshot of the scene

Author: s_noonan

Group: Technical

Filesize: 24.52 kB

Date added: 2015-05-09

Rating: 5

Downloads: 442

Views: 233

Comments: 6

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Last edited at 2016/07/02 20:21:07 by s_noonan
Please log in to rate this scene
edit
Similar scenes
Title: Snapping rain effect
Rating: 5
Filesize: 50.1 kB
Downloads: 586
Comments: 0
Ratings: 1
Date added: 2014/08/29 02:08:52
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: spaghetti
Rating: 5
Filesize: 0.83 MB
Downloads: 276
Comments: 0
Ratings: 1
Date added: 2020/03/13 18:39:17
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: The only way I spaghetti
Rating: 5
Filesize: 0.71 MB
Downloads: 1266
Comments: 0
Ratings: 1
Date added: 2023/03/02 20:32:10
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: The spaghetti eater
Rating: 5
Filesize: 21.93 kB
Downloads: 1031
Comments: 0
Ratings: 1
Date added: 2014/01/30 21:51:48
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Algicosathlon day 4
Rating: 5
Filesize: 0.5 MB
Downloads: 617
Comments: 0
Ratings: 1
Date added: 2017/01/08 14:15:07
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: SOMEBODY TOUCHA MY SPAGHETTI
Rating: 5
Filesize: 143.34 kB
Downloads: 735
Comments: 0
Ratings: 1
Date added: 2021/02/04 23:36:38
Made with: Algodoo v2.1.0
Rating: rated 5
download
Nice demo scene! :tup:

I played around with various parameters, and, as a result, I got the spaghetti to break in a way that is more like a piece of natural spaghetti. That is, the stick now breaks in 3 to 5 pieces (not counting the two end stubs which never break off). I set the sim frequency to 390 Hz, and I set both drive motors to 7.0 RPM. I also check-marked the "toggle" box for the left arrow key so that I don't have to manually hold it down.
Xray,

Thanks for the feedback. I tried those parameters and got similar results. I also tried various combinations of force and torque on the ends of the spaghetti. I liked the results of using your parameters, but felt uneasy that the scene performed well for only a small range of frequencies.
The scene is much more interesting now. Good job on the enhancements! :tup:

Just curious -- Why do you set the sim time factor to: 1.0 / sim.frequency? Is there an important relationship between the time factor and the frequency which must be maintained?

Thanks
I think that sim.timeFactor = 1.0/sim.frequency shows every time step, but I'm not absolutely sure.
use totimp3 instead of angle, simpler and better working
Thanks for the suggestion, but I was not able to improve the performance. Maybe I'm missing something. If I didn't change box color with torque, then I believe your suggestion would be faster.

Details:

I replaced
a := _abs(g1.angle - g0.angle);
g0.colorHSVA = [235.0 - 3133.0 * a, 1, 1, 1];
g1.colorHSVA = [235.0 - 3133.0 * a, 1, 1, 1];
with
torque := ((readable(owner)).totImp3)(2)*sim.frequency;
g0.colorHSVA = [235.0 + 1e6*torque/3.0, 1, 1, 1];
g1.colorHSVA = [235.0 + 1e6*torque/3.0, 1, 1, 1];
and

a > 0.075 ? {
with
torque < -0.00075 ? {

The scene went from 80% of simulation time to 62%. I then tried coloring 1 box per hinge, which sped things up, but caused one end of each of the larger pieces to stay red.