Тёмный

Nice bug 

Pezzza's Work
Подписаться 147 тыс.
Просмотров 991 тыс.
50% 1

Github github.com/johnBuffer/NoCol
Music used freepd.com/music/Screen%20Sav...
This is a reupload to fix typo.

Опубликовано:

 

8 апр 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4,3 тыс.   
@liesnoneya
@liesnoneya 3 года назад
In your attempt to create a collision system, you created the coolest anti collision system ever.
@oscardomingomartinez3455
@oscardomingomartinez3455 3 года назад
TFW you are trying to implement a collision system and you end up solving self driving cars
@inigo8740
@inigo8740 3 года назад
When you try to make a collision handling system, but just end up making a system that has no collisions at all... Technically, you've solved the problem.
@HenriqueCavalcanti
@HenriqueCavalcanti 3 года назад
"I was trying to make these balls collide, and ended up creating the universe" said God
@123TeeMee
@123TeeMee 3 года назад
It's a sort of accidental evolutionary process, the orbits that don't have collisions survive while those that do get mutated into a different orbit where they get tested again. Very good example of emergence.
@deesh6378
@deesh6378 3 года назад
I might be wrong but I think the reason this happens is that there's no loss of momentum when they collide just a change of the direction of momentum, so what happens is that they push each other out of the way but continue to move at the same speed, just in a different direction, which eventually causes the system to become stable.
@chakflying1
@chakflying1 3 года назад
So I read the code, and I would summarize it like this: basically he didn't implement velocity update when collision happens. When collision is detected (with simple radius check), he just nudged both of the spheres back away from each other just enough that they touch. The end effect is that they slide off of each other, continuing on their original path. So its like inelastic collision with no friction? Anyway it's these unique ingredients that drive the system to a stable state with no collision. Very cool!
@lucaayfmlyysiaejdsrtnnervd4646
@lucaayfmlyysiaejdsrtnnervd4646 3 года назад
"So I accidentally added a minus where there should've been a plus... This happened as a result"
@thefriendorthefoe
@thefriendorthefoe 3 года назад
This feels like those videos of a city traffic stop that's full of pedestrians, bikers, and cars all moving right past one another, just barely skimming without any accidents
@marzipug5439
@marzipug5439 3 года назад
I feel like this has a lot of potential. Some of the greatest things were found by accident :) Keep it up
@Mr.Not_Sure
@Mr.Not_Sure 3 года назад
Once a programmer was asked:
@derpsquad3306
@derpsquad3306 2 года назад
Holy crap
@shottysteve
@shottysteve 2 года назад
i can imagine that if someone wanted to create a system where given any radii and position parameters had the task to find a stable orbit relationship without any collisions, it would be really difficult without the use of a neural network (and probably still really tough), but the fact you got this behavior via a bug is just hilarious. and the concept has a lot of potential as a game too. with planets… or somethin haha
@TehJumpingJawa
@TehJumpingJawa 2 года назад
I'd love to see an in-depth video explaining the mechanics behind this behaviour.
@knightbeforedawn
@knightbeforedawn 2 года назад
This would be even more amazing if it were implemented into a 3D environment!
@koba2160
@koba2160 3 года назад
"I don't know why but when I delete this line right here, this happens"
@jeanf6295
@jeanf6295 2 года назад
If I understand the code, each ball is attracted by the center through an elastic force, while collisions directly displace pairs of overlapping particles away from each other in such a way that they end up barely touching, without modifying either of the registered speed values.
@talktothehand1212
@talktothehand1212 2 года назад
I'm shocked.
@BrodieEaton
@BrodieEaton 3 года назад
Makes code to detect collisions
@anmise
@anmise 2 года назад
The way they orbit around eachother damn. It's like gravity is being used to repel em
Далее
Turning bugs into Art
7:43
Просмотров 194 тыс.
Coding Adventure: Ant and Slime Simulations
17:54
Просмотров 1,8 млн
How Many Balloons Does It Take To Fly?
00:18
Просмотров 41 млн
AI Invents New Bowling Techniques
11:33
Просмотров 3,3 млн
The True Story of How GPT-2 Became Maximally Lewd
13:54
Naming Things in Code
7:25
Просмотров 2 млн
Making a CASH GRAB Game but With NO ADS
4:43
Просмотров 387 тыс.
Creating a Brick Breaker with my PHYSICS ENGINE
7:21
Просмотров 110 тыс.
How to train simple AIs
12:59
Просмотров 65 тыс.