Premium Only Content
 
			Marbles vs Music - Visualizer Bars Battle Royale
Chaos League is my marble race series that spawns YOU in. Create your character with custom images, colors, victory messages and more. Climb the leaderboards and see how you rank among the competition. How do I join for free? It’s simple, just become a valid patron at http://patreon.com/doodlechaos and you will be spawned in to the next Chaos League video automatically! You can join for FREE with Patreon’s new “Free Trial” feature! I’ve maxed out the duration. The higher tier you pick, the easier it will be to spot your character in the crowd. (PSA: If you cancel before the video comes out, I won't be able to draw your information from the API and you won't spawn in. Custom pledges below "Doodler" tier will not spawn in.)
Welcome to episode 3 of Chaos League. I built my own physics based music visualizer just to make this video. It's mostly procedural along a line renderer, which is how I was able to curve the visualizer bars into different paths. Super fun to build, but boy did it turn out to be way more challenging than I was expecting. I've been learning a lot while working on this.
Season 1 Uploads
Chaos League Ep 1 - https://www.youtube.com/watch?v=YVjXf1zRI3I&t=2s
Chaos League Ep 2 - https://www.youtube.com/watch?v=NRqzqg7vDuw&t=2s
How do I customize my marble?
Your marble will be spawned in with your current Patreon profile picture image. Display names are taken from your Patreon name as well. You can update these at any time on Patreon. Other customization options (such as victory message and name color) must be modified by logging in with your Patreon account at doodlechaos.com. Don’t forget to add a victory message to display on the top ten leaderboard!
Have other questions? Ask in the Chaos League Discord Text Channel.
https://discord.gg/VZPKr8VvRE
Twitter:
https://twitter.com/DoodleChaos
Music:
[Electro] Nitro Fun - Cheat Codes [Monstercat Release]
https://www.youtube.com/watch?v=mdaCDsN1FJ0
Lego Click SFX by CGEffex:
https://freesound.org/people/CGEffex/sounds/104818/
My main takeaways from this project (Mostly me rambling just to clear my head)
1. Unity Package Manager is amazing! Learn to make your own packages and you will become 10x more organized. It is so cool that I can make a change to my visualizer spectrum package, and then update it into all other unity projects with ease. No more duplicate instances of code across projects.
2. Animation does not play well with kinematic rigidbodies. Challenge: Make super fast moving bars animated to music interact naturally with rigidbody physics, and exert the proper force on the balls based on their change in growth velocity on the bar from the music. Making the bars grow while also maintaining the correct velocity was a tough challenge. My solution was to create "caps" for each of the bars that are a constant scale, then scale a secondary base mesh underneath it. Now how should I move these caps? First failure, PID controlled caps, it looked correct, but the balls kept glitching through the bar colliders. Second failure, making custom config joint sliders for each of the caps so that they are locked into a certain range of motion. This also had crazy bugs in the physics. Sometimes the balls would stick to the top even as the bars were moving down against gravity. My theory for why this method was failing the penetration resolution tried to push the bar away to resolve the collision, rather than the ball, but the rigidbody world somehow wasn't aware that I had a constraint due to the config joint? IDK. Constraints + Rigidbodies in unity have been buggy in my experience, but I'm probably doing something wrong. Finally, the working solution turned out to be the simplest. All I had to do was make the rigidbodies kinematic and animate them with Rigidbody.MovePosition(). This updates the velocity correctly and viola, no more glitches!
Fun facts:
- I pulled an all nighter just to get the physics correct when the marbles impact the music visualizer bars.
- I added support for emojis in the victory message on the leaderboard!
- 	
				 15:48 15:48Sponsored By Jesus Podcast16 hours agoHow to Stop Being JEALOUS | When Comparison Steals Your Joy8.11K11
- 	
				 DVR DVRDLDAfterDark6 hours ago $6.24 earnedDon't Worry - Things Will Get SO Much Worse! Sometimes It Be Like That17K3
- 	
				 25:41 25:41Robbi On The Record12 hours ago $2.22 earnedThe Billion-Dollar Lie Behind OnlyFans “Empowerment” (Her Testimony Will Shock You) | part II11.1K8
- 	
				 12:22 12:22Cash Jordan4 hours ago"CHICAGO MOB" Fights Back... "ZERO MERCY" Marines DEFY Judge, SMASH ILLEGALS22.3K38
- 	
				 46:58 46:58Brad Owen Poker16 hours agoI Make QUAD ACES!!! BIGGEST Bounty Of My Life! Turning $0 Into $10,000+! Must See! Poker Vlog Ep 32312.9K6
- 	
				 2:52:28 2:52:28TimcastIRL7 hours agoSTATE OF EMERGENCY Declared Over Food Stamp CRISIS, Judge Says Trump MUST FUND SNAP | Timcast IRL233K128
- 	
				 3:22:45 3:22:45Tundra Tactical14 hours ago $20.28 earned🚨Gun News and Game Night🚨 ATF Form 1 Changes, BRN-180 Gen 3 Issues??, and Battlefield 6 Tonight!38.6K3
- 	
				 1:45:13 1:45:13Glenn Greenwald10 hours agoJD Vance Confronted at Turning Point about Israel and Massie; Stephen Miller’s Wife Screams “Racist” and Threatens Cenk Uygur with Deportation; Rio's Police Massacre: 120 Dead | SYSTEM UPDATE #540115K163
- 	
				 LIVE LIVESpartakusLIVE7 hours agoSpart Flintstone brings PREHISTORIC DOMINION to REDSEC349 watching
- 	
				 1:05:02 1:05:02BonginoReport10 hours agoKamala CALLED OUT for “World Class” Deflection - Nightly Scroll w/ Hayley Caronia (Ep.167)133K82