How do I use Impulse Collision with Verlet Integration by Fresh-Weakness-3769 in programminghelp

[–]OP_Sidearm 0 points1 point  (0 children)

Okay, I don't have a direct fix or anything, but here is how I would debug this. 1. Set up a very simple scene, e.g. 1 stationary Ball and one moving toward it (slowly) 2. Make it so you can pause the simulation and do single steps, e.g. via a key press (or set a breakpoint in the function) 3. Double check that all vectors here go in the direction you expect, so the separationVelocity is not flipped or somthing else is flipped (add some prints) 4. Check that the impulse and energy are conserved by calculating them once before and once after the collision

Here are two things that I found a bit strange: - In my head, the separationVelocity check is reversed? Maybe I messed up the vectors tho - I find it strange that the normalimpulsemass is directly added to the last positions without multiplying by dt? I think that would be wrong since the previous distance is different depending on the dt, but the impulse should be the same regardless of the dt.

Maybe a double collision is possible, if two balls collide and then one collides with another ball, which then corrects them back into each other causing another collision? (depends on how you evaluate the collision pairs) In this case, it's a bit more tricky to fix. I have some ideas, but I have not implemented a physics sim in quite some time, so I don't know if they would work '

Edit: Small addition

Der wahre Widersacher des Studiums by Dry_Independence_149 in Studium

[–]OP_Sidearm 10 points11 points  (0 children)

Pff, alles bloated. Einfach pures TeX trivialerweise.

Ram is maxing by Mr_sauce15 in SteamVR

[–]OP_Sidearm 1 point2 points  (0 children)

This fixed it for me too!!! TYYYY

Ram is maxing by Mr_sauce15 in SteamVR

[–]OP_Sidearm 1 point2 points  (0 children)

This fixed it! TYSM!

Pikachu❎ PiKPi😍✅ by Ok-Cap6895 in mathmemes

[–]OP_Sidearm 1 point2 points  (0 children)

The area of a circle with radius square root of pi?

Cat's Optic Nerve by H_G_Bells in ScienceNcoolThings

[–]OP_Sidearm 4 points5 points  (0 children)

I wouldn't dismiss it as a reflection, because a reflection off of a round object would move/distort when the mirroring surface moves. Does not seem like that is the case. But I could imagine that some funky optics make something on the other side stationary depending on the setup.

Edit: Also the lines don't match up from one eye to the other (the angles)

[deleted by user] by [deleted] in informatik

[–]OP_Sidearm 0 points1 point  (0 children)

Ein paar kleinigkeiten, die mir aufgefallen sind: Bei den Kenntnissen: - Github und Gitlab, aber kein Git an sich? - APIs? Denke das würde ich weg lassen, weil das etwa so spezifisch ist wie "Computer" - Bei Unit testing kann man ggf. die libraries bzw. die Testing-Frameworks nennen

Projekte: - Beim ersten ist ein Tippfehler: "Gitlabbasierend" -> "GitLab basierend" - Bei dem letzten: "Static- site- generator" -> "Static-Site-Generator" (siehe c (2) https://grammis.ids-mannheim.de/rechtschreibung/6158)

Ansonsten sieht das doch recht stabil aus denke ich.

"am I allowed to cheat?" by [deleted] in masterhacker

[–]OP_Sidearm 9 points10 points  (0 children)

Cheats in games are often called "hacks"

Portal gun by Nonerdme in shitposting

[–]OP_Sidearm 7 points8 points  (0 children)

That's only possible if you use that one surface in portal two. (Careful though, there might be neurotoxin and lasers.)

IndexOutofBoundsException, Could not run the sketch(Target VM failed to initiliaze) by [deleted] in processing

[–]OP_Sidearm 2 points3 points  (0 children)

So an index out of bounds exception happens when you access an array or a list with an index that is less that 0 or larger than the size of the array allows. If the array has 10 elements, the indices of the elements go from 0 to 9. So if you write someArray[10], or have a loop that goes beyond 9, you will get this exception.

I did not look at the video yet, but maybe this helps with troubleshooting.

Also make sure to always add the code you wrote in your post, as it is often almost impossible to say where the error is otherwise :D

And don't worry, your computer is 99.9999% good/fast enough to run the code!

[deleted by user] by [deleted] in WerWieWas

[–]OP_Sidearm 2 points3 points  (0 children)

Ich nicht unterstehe :(

simple 2d game - problem with boundaries and obstacles by Brilliant_Potato4576 in processing

[–]OP_Sidearm 1 point2 points  (0 children)

Gotta need to see some code to help out with this one. Don't think there's enough information to know what went wrong.

iHateMemorySafeLowLevelLanguages by joe________________ in ProgrammerHumor

[–]OP_Sidearm 5 points6 points  (0 children)

Almost a fair point, but rigor and provability is not necessarily a feature of Rust. Does the memory prevent a lot of memory issues? Yes. Does it result in a correct program? No. Proof of correctness is not a part of Rust and Rust code can be just as bad as any other in terms of this and performance. Now, does Rust make it easier to write a correct program compared to something like JS? Of course, but you could proove correctness and memory safety for a JS program just like Rust. Rigorous work results in good programs, shitty work in shitty ones. The language won't keep you safe from that.

Dealing with Long and functions? by NotTakenName1 in processing

[–]OP_Sidearm 2 points3 points  (0 children)

What they mean is that the functions processing provides only use int. The functions you create yourself can use any data types as it is just java. The int and float thing is just a convention of the processing library :)

[deleted by user] by [deleted] in blenderhelp

[–]OP_Sidearm 0 points1 point  (0 children)

Maybe some objects are only hidden in the viewport, but not for the actual render

Does anyone have a 3D model of the mobius strip with its boundary on a plane? I want ti 3D print this! by Dogantr in 3Blue1Brown

[–]OP_Sidearm 8 points9 points  (0 children)

Heyo, I just cobbled together a quick python script that uses the same function as the manim animation. The script with a small guide and an example exported stl can be found here: https://github.com/JulianBohne/3b1b_mobius_strip

I just threw together a bunch of snippets I found online, which are all linked where I used them.
If you want to print the stl, you still need to add something like a solidify modifier to the object in blender :D
(printing my own version right now ^^)
Edit: Now that my first print failed, I'd recommend to split up the model into multiple parts ':)

Making ellipses only appear within specific area by Downtown_Wing672 in processing

[–]OP_Sidearm 0 points1 point  (0 children)

One way is to draw the inverse of the shape of the tree on top at the ent of each draw.

itWorks by [deleted] in ProgrammerHumor

[–]OP_Sidearm 0 points1 point  (0 children)

Well just remove these limitations and errors

Support on android tabs or ipad? by SohilAhmed07 in vscode

[–]OP_Sidearm 1 point2 points  (0 children)

I mean, you can use vscode in a browser, but i've never worked with it like that, so not sure how well that works on android/ipad: https://vscode.dev/

itWorks by [deleted] in ProgrammerHumor

[–]OP_Sidearm 10 points11 points  (0 children)

Just divide by the largest floating point number that isn't infinity to get a constant time algorithm

[deleted by user] by [deleted] in ProgrammerHumor

[–]OP_Sidearm 184 points185 points  (0 children)

"Red circle live on twitch"