8 Replies - 572 Views - Last Post: 12 April 2017 - 11:05 AM Rate Topic: -----

#1 MuntyScruntFundle  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 15-January 16

Collision Spin Resolution.

Posted 12 April 2017 - 07:41 AM

I can find hundreds of articles on collision solutions, but nothing in code form for calculating the passing of rotation of one object, through friction and torque, to a second object. I can find lots of math papers on the subject, but I can't read math.

I kind of understand what needs to be done, but need explanations in a code oriented form rather than that of a mathematical physicist.

I develop in VB but I can understand C#.
I'm a programmer of over 25 years, but that's mostly been database systems, I've been learning game theories for about a year.

If this already exists somewhere please point me to it.

Many thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: Collision Spin Resolution.

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 13482
  • View blog
  • Posts: 53,820
  • Joined: 12-June 08

Re: Collision Spin Resolution.

Posted 12 April 2017 - 07:45 AM

What have you tried, considered, or looked into?

What are you trying to spin?
Was This Post Helpful? 0
  • +
  • -

#3 MuntyScruntFundle  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 15-January 16

Re: Collision Spin Resolution.

Posted 12 April 2017 - 09:42 AM

View Postmodi123_1, on 12 April 2017 - 07:45 AM, said:

What have you tried, considered, or looked into?

What are you trying to spin?



Hi Modi. Thanks for getting back to me. So far I haven't tried a great deal, I realised pretty quickly this isn't something I can achieve without a load of physics math learning or some examples I can pick bits from.

It's circle to circle collision, that's all I need at the moment. I'm not trying to re-create a 2d physics engine, but don't want to employ a full engine for one routine. Plus I learn/remember more if I don't simply plug something else in.

All the examples I've found include collision of regular to irregular objects, or include a load of stuff I don't need. Then I find it really difficult to pull the math apart.

I have the 'Bounce' complete, a really nice 'realistic' impulse without any sticking or strange outcomes, but the extra math involved for the rotation transfer is beyond my brain power! I have a good grasp of real world physics, I just don't know how to transfer the visual to the abstract.

I promise I will take a physics course when I've finished this project!
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 13482
  • View blog
  • Posts: 53,820
  • Joined: 12-June 08

Re: Collision Spin Resolution.

Posted 12 April 2017 - 09:46 AM

Again.. what are you 'colliding'? What are the circles supposed to represent?
Was This Post Helpful? 0
  • +
  • -

#5 MuntyScruntFundle  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 15-January 16

Re: Collision Spin Resolution.

Posted 12 April 2017 - 10:14 AM

Well, they could be anything I suppose. At the moment they're just circles with a simple texture so I can visualise the rotation.
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 13482
  • View blog
  • Posts: 53,820
  • Joined: 12-June 08

Re: Collision Spin Resolution.

Posted 12 April 2017 - 10:17 AM

Okay.. so they don't have properties, mass, friction, etc? I am just trying to get a handle on what the parameters are. I mean if you want some sort of realistic math but abstract objects it is not a winning combination. Why not just give the hit object ( B ) some random fraction of the spin from (A) post collision? Glosses over the math, it seems okay, then move on to more interesting parts of the project.
Was This Post Helpful? 0
  • +
  • -

#7 MuntyScruntFundle  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 15-January 16

Re: Collision Spin Resolution.

Posted 12 April 2017 - 10:36 AM

Yes of course.

They have mass, this is in the bounce calculations, they have random rotations and velocities set at creation time. At the moment they're bouncing around in a circular space, like air particles would in a balloon.

It's really just a sandbox to prove concept (obviously already proven somewhere) and learn this stuff.

I've tried setting arbitrary values, but then I get lost trying to decide how much to add depending on the angle of collision, mass, velocity. This is where the 'proper' physics approach seems sensible, I might as well lern to do it the right way rather than fluffing it. :o)
Was This Post Helpful? 0
  • +
  • -

#8 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 13482
  • View blog
  • Posts: 53,820
  • Joined: 12-June 08

Re: Collision Spin Resolution.

Posted 12 April 2017 - 10:56 AM

Then you'll need to buckle down and know the math. Normal elastic collisions are not bad math-wise.. more than that, well, buckle in.

https://docs.google....WNyU3paamM/edit
https://sourceforge....EAD/tree/trunk/
Was This Post Helpful? 0
  • +
  • -

#9 MuntyScruntFundle  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 15-January 16

Re: Collision Spin Resolution.

Posted 12 April 2017 - 11:05 AM

Yeah, I've got that far already. :o)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1