The Glade 4.0 https://gladerebooted.net/ |
|
Some physics questions https://gladerebooted.net/viewtopic.php?f=2&t=10778 |
Page 1 of 1 |
Author: | Lex Luthor [ Wed Feb 26, 2014 4:20 pm ] |
Post subject: | Some physics questions |
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. |
Author: | TheRiov [ Wed Feb 26, 2014 4:39 pm ] |
Post subject: | |
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. |
Author: | Lex Luthor [ Wed Feb 26, 2014 5:33 pm ] |
Post subject: | |
Yea assume they are all uniformly dense, and don't deform in collisions. edit: Nevermind, my brother figured it out. |
Page 1 of 1 | All times are UTC - 6 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |