Rocket/Space Game (Was "Rigid body rotations")
-
- Posts: 523
- Joined: Mon Jun 03, 2013 4:54 pm
Rocket/Space Game (Was "Rigid body rotations")
Assume I have a collection of point masses attached together with infinitely rigid massless rods in an ideal frictionless Newtonian universe. (Ah, the joy of physics-world.)
The masses are suddenly given velocities. How would one calculate the resulting translational and rotational speed?
(No, this isn't for homework, it's for a game/program I'm trying to make.)
What I have so far is give the collection of objects an extra velocity to make the total translational momentum be 0. Then we calculate the "pulling" momentum of each mass by breaking the velocities into the radial and "towards/away from center" velocities. Add together the towards/away velocities. The remaining velocities are all radial. Calculate the total... Not sure what this is called. Distance of each object from CoM * mass * velocity. Find the average rotational momentum from those, then add up the velocity removed at the beginning and the sum of the towards/away velocities to get translational.
Is this right?
The masses are suddenly given velocities. How would one calculate the resulting translational and rotational speed?
(No, this isn't for homework, it's for a game/program I'm trying to make.)
What I have so far is give the collection of objects an extra velocity to make the total translational momentum be 0. Then we calculate the "pulling" momentum of each mass by breaking the velocities into the radial and "towards/away from center" velocities. Add together the towards/away velocities. The remaining velocities are all radial. Calculate the total... Not sure what this is called. Distance of each object from CoM * mass * velocity. Find the average rotational momentum from those, then add up the velocity removed at the beginning and the sum of the towards/away velocities to get translational.
Is this right?
Last edited by A Random Player on Sat Aug 16, 2014 2:56 pm, edited 1 time in total.
$1 = 100¢ = (10¢)^2 = ($0.10)^2 = $0.01 = 1¢ [1]
Always check your units or you will have no money!
Always check your units or you will have no money!
Re: Rigid body rotations
Sorry, I know what you're talking about, but I haven't an idea how to deal with this. I'm just curious: what type of program are you making?
Nobody ever notices my signature. ):
-
- Posts: 523
- Joined: Mon Jun 03, 2013 4:54 pm
Re: Rigid body rotations
A little rocket game. (Whose physics has changed twice already
)

$1 = 100¢ = (10¢)^2 = ($0.10)^2 = $0.01 = 1¢ [1]
Always check your units or you will have no money!
Always check your units or you will have no money!
Rocket Game
So, what's the rocket game about? Navigating mazes from space? Traveling near light speed? The effects of the centrifugal forces on the rocket? 

Nobody ever notices my signature. ):
-
- Posts: 523
- Joined: Mon Jun 03, 2013 4:54 pm
Re: Rocket Game
I might actually try making that if I have timeexfret wrote:So, what's the rocket game about? Navigating mazes from space? Traveling near light speed? The effects of the centrifugal forces on the rocket?

$1 = 100¢ = (10¢)^2 = ($0.10)^2 = $0.01 = 1¢ [1]
Always check your units or you will have no money!
Always check your units or you will have no money!
-
- Posts: 523
- Joined: Mon Jun 03, 2013 4:54 pm
Re: Rigid body rotations
Oh whoops, the centrifugal game 

$1 = 100¢ = (10¢)^2 = ($0.10)^2 = $0.01 = 1¢ [1]
Always check your units or you will have no money!
Always check your units or you will have no money!
Centrfugal Game
Maybe you could get some code for Andy. Of course, this wouldn't help with your problem right now, but it could still give you a head start in making your game. Are there any games that include what you're trying to do? Maybe it could be possible to copy them.
Nobody ever notices my signature. ):
- testtubegames
- Site Admin
- Posts: 1164
- Joined: Mon Nov 19, 2012 7:54 pm
Re: Rigid body rotations
Ooh! Just the kinda problem I like. And sounds pretty familiar to questions I've had to ask myself in the pastA Random Player wrote:Assume I have a collection of point masses attached together with infinitely rigid massless rods in an ideal frictionless Newtonian universe. (Ah, the joy of physics-world.)
The masses are suddenly given velocities. How would one calculate the resulting translational and rotational speed?
(No, this isn't for homework, it's for a game/program I'm trying to make.)
What I have so far is give the collection of objects an extra velocity to make the total translational momentum be 0. Then we calculate the "pulling" momentum of each mass by breaking the velocities into the radial and "towards/away from center" velocities. Add together the towards/away velocities. The remaining velocities are all radial. Calculate the total... Not sure what this is called. Distance of each object from CoM * mass * velocity. Find the average rotational momentum from those, then add up the velocity removed at the beginning and the sum of the towards/away velocities to get translational.
Is this right?

Don't have much time to draft an answer right now - but wanted to let you know I saw it. My first question for you, though, is what is giving these bodies their own velocities? Since, if it's a rocket, each might have a particular force it's contributing, instead, which would lead to a different result. What you're asking right now sounds tantamount to: "all these pieces happen to be flying around with their own velocities, then at time x, they are all suddenly attached to each other". Does that sound about right?
-
- Posts: 523
- Joined: Mon Jun 03, 2013 4:54 pm
Re: Rigid body rotations
Well, I'm using Newtonian/leapfrog approximation (not sure which since they look the same); the point masses are rockets, and they're connected together by.... Magic? So for each step in the simulation, the individual rockets accelerate their actual acceleration * the timestep. The forces would need to transfer to the others rockets, which are modeled by the rigid connections.testtubegames wrote:Ooh! Just the kinda problem I like. And sounds pretty familiar to questions I've had to ask myself in the pastA Random Player wrote:Assume I have a collection of point masses attached together with infinitely rigid massless rods in an ideal frictionless Newtonian universe. (Ah, the joy of physics-world.)
The masses are suddenly given velocities. How would one calculate the resulting translational and rotational speed?
(No, this isn't for homework, it's for a game/program I'm trying to make.)
What I have so far is give the collection of objects an extra velocity to make the total translational momentum be 0. Then we calculate the "pulling" momentum of each mass by breaking the velocities into the radial and "towards/away from center" velocities. Add together the towards/away velocities. The remaining velocities are all radial. Calculate the total... Not sure what this is called. Distance of each object from CoM * mass * velocity. Find the average rotational momentum from those, then add up the velocity removed at the beginning and the sum of the towards/away velocities to get translational.
Is this right?
Don't have much time to draft an answer right now - but wanted to let you know I saw it. My first question for you, though, is what is giving these bodies their own velocities? Since, if it's a rocket, each might have a particular force it's contributing, instead, which would lead to a different result. What you're asking right now sounds tantamount to: "all these pieces happen to be flying around with their own velocities, then at time x, they are all suddenly attached to each other". Does that sound about right?
Your analogy works, for one instant. All the pieces are flying around, but at all times, they are suddenly attached to each other, if that makes any sense.
$1 = 100¢ = (10¢)^2 = ($0.10)^2 = $0.01 = 1¢ [1]
Always check your units or you will have no money!
Always check your units or you will have no money!