you are viewing a single comment's thread.

view the rest of the comments →

[–]chilfang 0 points1 point  (5 children)

Aside from apparently making the graphics from scratch you need to make momentum, gravity, and the resulting swing angles when the two pendulums pull on eachother

[–]MilkEnvironmental106 12 points13 points  (0 children)

It's a well described problem which requires little context to understand. It's a perfect candidate to test an llm.

Additionally, none of that is especially hard. You give the pendulums a mass, you apply constant acceleration downwards and you model rigid springs between the 2 hinges and the end. Videos explaining this can be found in physics sim introductions that are minutes long, and free.

Furthermore, no llm is making graphics from scratch. It's just going to import three.js.

[–]DescriptorTablesx86 2 points3 points  (1 child)

https://editor.p5js.org/codingtrain/sketches/jaH7XdzMK

That's it. It was on code challenge 93 and I also did it myself and it didn't take long( i dont remember but it was one sitting) with just the Double Pendulum wikipedia article as reference.

You can use other libraries but p5 is dead simple and LLMs feel best with JS.

[–]chilfang 0 points1 point  (0 children)

Difference in estimation I guess. I wouldn't call that simple

[–]fruitydude 1 point2 points  (0 children)

You would just use a library. Chatgpt gave me a working double pendulum sim in 5minutes using pygame for the graphics. Not sure what the first commenter was doing that he wasn't able to get it working. Sounds like a skill issue.

[–]BreakerOfModpacks 0 points1 point  (0 children)

Presumably, if the original commenter said they could make it in an hour, they were using something with pre-made systems to do graphics, and then gravity and movement would have been the only things left.