Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

One more collision problem!`

$
0
0

@MuntyScruntFundle wrote:

So, I hope this is the last collision problem I'm going to deal with for a long time!

Everything is going quite well, my objects are bouncing off each other nicely, nothing sticking, nothing untoward happening. So of course I thought I'd try to break things again!

My objects (meteors or asteroids) are bouncing around in a large circle, they bounce off the edges and each other imparting energy as they go. It's all completely elastic so there is no loss of energy over time and with that in mind it all looks really realistic. Except, I'm not imparting any spin. As the objects are irregular (but roughly circular) it looks slightly off when a glancing blow doesn't change the spin (rotation) of either object.

I've tried searching for snooker/pool physics, but that's all a bit over the top, I just want to transfer spinning energy to both objects with a constant coefficient.

Does anyone have a simple snippet, or know where I can look for an example?

Many thanks.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles