HomeTennisCollision 2024 Speakers: Who will be there this year edition?

Collision 2024 Speakers: Who will be there this year edition?

Alright, let’s talk about this “collision 2024” thing. So, I was messing around with some stuff, and decided to see if I could, you know, make two things bump into each other. Sounds simple, right? Well…

Collision 2024 Speakers: Who will be there this year edition?

First off, I spent a good chunk of time just figuring out what I wanted to collide. Ended up going with a couple of simple shapes – a square and a circle. I know, super original. But hey, gotta start somewhere. I grabbed my usual coding setup and started sketching out the basic movement. Get the square moving one way, circle going another. Easy peasy.

The Fun Begins (Not Really)

Then comes the actual collision bit. This is where I hit a wall. Like, a big, brick, “what am I doing with my life?” wall. There are a ton of ways to detect if two shapes are overlapping. Some are super complicated with fancy math I barely understand. Others are… well, not accurate at all.

I initially tried the simplest thing: checking if the distance between the center of the circle and the center of the square was less than the radius of the circle plus half the side of the square. Sounded good in my head. In reality? The square and circle were miles apart, and my code was screaming “COLLISION!”.

  • Tried that distance formula thing. Nope.
  • Looked at some fancy “separating axis theorem” stuff. My brain hurt.
  • Contemplated giving up and watching TV.

Eureka! (Kind Of)

Collision 2024 Speakers: Who will be there this year edition?

After a whole bunch of head-scratching, I decided to break it down. Forget the fancy stuff. Just check each corner of the square. See if any of those corners are inside the circle. If they are, then BAM! Collision.

It’s clunky, I know. Not the most efficient. But guess what? It freakin’ worked! The square and circle finally collided like they were supposed to. I even added a little “BOOM!” effect when they touched. Because why not?

The Aftermath

So, “collision 2024” is done. Ish. It’s not perfect. It probably falls apart if I rotate the square or make the circle really, really big. But it’s a starting point. And honestly, just getting something working after staring at code for hours is a win in my book.

Now, I’m thinking of trying this with more complex shapes. Maybe a spaceship and an asteroid? Or a pixel-perfect collision system for a retro game? Who knows! But for now, I’m calling this one a success. A messy, slightly embarrassing success.

Collision 2024 Speakers: Who will be there this year edition?

Cheers!

Stay Connected
16,985FansLike
2,458FollowersFollow
61,453SubscribersSubscribe
Must Read
Related News

LEAVE A REPLY

Please enter your comment!
Please enter your name here