Repelling Particles in Java + Processing

preview_player
Показать описание
Particle simulations are really fun to program and to watch. In this coding challenge I create a colourful system of repelling particles. They all repel each other and the mouse leading to some fun, dynamic animation!
This coding challenge was completed using Processing which is a library built for Java that makes getting started in coding visuals a piece of cake.

The particle system uses custom classes and the basic of object oriented programming to create the particle objects. ArrayLists are used to store and manage all of the particles in the system.

Vectors are used to manipulate the velocities of each particle so that they are repelling each other (as well as the mouse)

Hope you enjoy the episode!

0:00 - Intro
1:30 - Particle object
6:45 - Movement
11:16 - Multiple particles
14:01 - Repelling each other
22:26 - Styling
29:14 - Final product

Make sure to check out the links below, they've got everything you need to get started!

Check out the rest of the Coding Challenges here:

Follow me:

#creativecoding #processing #java
Рекомендации по теме
Комментарии
Автор

Genius. I love how easy it all seems to you !!

limboreversible
Автор

Hey, really enjoyed your video. I like how you handled video editing the debugging process when the code wasn't doing what you expected. Keep up the good work!

shifty
Автор

Hey!! Thank you for making this! You should do more of these!!

Dvkpainter
Автор

Wow AMAZING tutorial, enjoyed a lot! I think i'm able to say you just saved my college semester aha.

Keep up the great work!

jaydee
Автор

Thanks for this !!! I learned a lot :)

matiast
Автор

May I ask what software you use to prepare your presentations?

robertosotoalvarez
Автор

Hey, really enjoyed your video. It was very methodical and step by step. I'm australia based and wonder if you run any classes?

sophiebear