Raised This Month: $ Target: $400
 0% 

String manipulation fun!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flynn
Senior Member
Join Date: Sep 2009
Old 09-24-2009 , 04:55   Re: String manipulation fun!
Reply With Quote #1

Quote:
Originally Posted by Greyscale View Post
You want to find the gravitational pull between 2 objects?

Simple.

Fg = G((m1*m2)/r^2)

I believe that's it.
I'll have to look up G. It's some tiny constant I can google it right now... 6.67300 × 10^-11 m^3 kg^-1 s^-2

You can ignore those intimidating units.

m1/2 are the masses of the objects and r is the radius. The distance between the objects. It's refered to as radius because normally your calculating from the center of a large mass such as earth.

This equation is how you derive the -9.81 m/s^2 constant for earth.

Fg is the force of gravity, in newtons. That's pretty much all I can think that you need to know.

Here's a more in-depth description: http://en.wikipedia.org/wiki/Gravitational_constant
Those kinds of theories make my eyes glass over. Besides I'm sure density of the matter would be involved (probably in the process of the ...
{
Hold on a minute. Light is apparently 'massless'? So how does a dense black hole pull it in if there is no mass in which to...

Or, unless light does have a mass, which means mass can travel at the speed of light. Which means we could slow down time for an object... just be a little... gooey... on the other end. Unless of course you just send information. Information can't be crushed.

(This is how my brain works!)
}
... mass itself) however, it's easier to just give it X mass and use that as the force as well (although it isn't very scientific, games don't have to be unless you're trying to precisely simulate something).

But what about multiple units? What direction does a mass head in based on the pull of two (or more) objects? Well, probably in the direction of the strongest mass, but, how do we effectively calculate that?

Wouldn't it be easier to combine the force of two or more objects and have that influence the object at greater distances and then as it gets closer make them separate?
Quote:
Originally Posted by Theme97 View Post
Since this is in TF2, I've got to used 3D coords but I set everything on the Z axis equal to each other.
It's the same method but you have to factor in angle calculations on the other 'planes'. And probably would need a way to combine the three calculated distances of the three separate triangles (again, one for each plane) or something.

But that's sketchy at best. I haven't even done the 2D version let alone the 3D one.
Flynn is offline
Send a message via MSN to Flynn Send a message via Skype™ to Flynn
Frus
Senior Member
Join Date: Aug 2009
Old 09-24-2009 , 05:05   Re: String manipulation fun!
Reply With Quote #2

Quote:
Originally Posted by Flynn View Post
But what about multiple units? What direction does a mass head in based on the pull of two (or more) objects? Well, probably in the direction of the strongest mass, but, how do we effectively calculate that?

Wouldn't it be easier to combine the force of two or more objects and have that influence the object at greater distances and then as it gets closer make them separate?
You determine it using simple force and vectors physics. Basically just make all forces on an object into vectors, then add up the vectors.

i.e. in 1D If object x has a +5N force, and a -3N force on it, object x has a net force of +2N. You can then calculate the resultant acceleration from the force using f = ma. basically divide the net force in N by the mass of the object in kg to get the acceleration of the object caused by the forces on the object.

I'm not sure what you mean by the second paragraph, but yes, you simplify all forces to one net force no matter how far or close they are.

As far as light goes, that's a subject all into itself, it's not as simple as saying light has a mass or light does not have a mass.

Last edited by Frus; 09-24-2009 at 05:07.
Frus is offline
Flynn
Senior Member
Join Date: Sep 2009
Old 09-24-2009 , 05:24   Re: String manipulation fun!
Reply With Quote #3

Quote:
Originally Posted by Frus View Post
You determine it using simple force and vectors physics. Basically just make all forces on an object into vectors, then add up the vectors.
Seems awkward. I'd probably have to blow up my brain drawing a hypothetical scenario on a peice of paper of 2D space and trying to work out how, if I was X object, how I would move (or be expected to move) in relation to other objects.

Quote:
Originally Posted by Frus View Post
As far as light goes, that's a subject all into itself, it's not as simple as saying light has a mass or light does not have a mass.
It's a wave! No it's a beam! It's both a beam and a wave!

I'm one of those people who categorise things into one box or another. And I'd probably say it is (who am I to say such things about time and space?). I just find such a thing works quite nicely.

Beside, if mass generates gravity, and gravity can only pull mass, and a black hole is a super-dense, super-gravity-magnifying-time-bending-object that stops light escaping, then light must have a mass (a mass so small it's practically unreadable but due to the sheer power of the 'black' hole is magnified enough to pull it in).

Besides, energy needs a storage medium. Most common universal medium is typically... yeah. Which implies something about energy.

Besides, I don't build these theories so people can agree with them (I rarely expect people to do so). The real theory currently pre-occupying my mind (which I think is actually, as strange as it sounds, more important than light or physics at the moment) is what is luck and what influences it?

And don't give that 'be more observant of opportunities' crud that people are churning out. Of course being observant gives you more resources but luck isn't defined by 'resources' or opportunities. If that was the case I'd be lucky simply for having a magnifying glass and a sherlock holmes persona (and admit it - how many lucky people are like this?). I mean, how exactly do you observe the lottery anyway?

If it was observation I would be pretty lucky by now. But I'm not. Oh horribly not so.

Last edited by Flynn; 09-24-2009 at 05:26.
Flynn is offline
Send a message via MSN to Flynn Send a message via Skype™ to Flynn
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode