The Glade 4.0

"Turn the lights down, the party just got wilder."
It is currently Fri Nov 22, 2024 4:10 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Some physics questions
PostPosted: Wed Feb 26, 2014 4:20 pm 
Offline

Joined: Thu Sep 03, 2009 10:03 am
Posts: 4922
I'm working on programming a game, and was wondering if anyone could point me in the right direction.

Let's say you have a bunch of cubes glued together, floating in space with no gravity. Then another cube comes out of nowhere and hits the grouped cubes. When they hit, they bounce off of each other and cause changes in momentum and rotation.

How would you mathematically calculate the change in velocity of the cubes, and how much they are rotating? I'm sure it would have to do something with finding the center of masses, normal vectors, and stuff like that, but I don't know the specifics.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Feb 26, 2014 4:39 pm 
Offline
Rihannsu Commander

Joined: Thu Sep 03, 2009 9:31 am
Posts: 4709
Location: Cincinnati OH
It depends on what factors you want to include and which to ignore. The classic "assume a spherical chicken in a vacuum" sort of problem. If your cubes (spheres are easier btw) are solid, uniformly dense, and all collisions are 100% elastic (there is no loss of kinetic energy to heat, or deformation of the cubes) then the math is a LITTLE more straight forward. If your cubes were made of bean-bags that would deform, or metal that would dent, etc this can get very very complicated very quickly.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Feb 26, 2014 5:33 pm 
Offline

Joined: Thu Sep 03, 2009 10:03 am
Posts: 4922
Yea assume they are all uniformly dense, and don't deform in collisions.

edit:

Nevermind, my brother figured it out.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 60 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group