"You can see this in practical terms by making an ellipse yourself. Put two thumbtacks about four inches apart in a paper-sized piece of cardboard. (These distances are arbitrary, but it will get you started.) Next, tie a loose-fitting string, about seven inches long or so, between the two thumbtacks. Finally, place a pencil inside the string and pull it away from the tacks until the string is taut. The string will look like a triangle with the pencil and the two tacks in the corners. Move the pencil all the way around the cardboard, keeping the string taut, and you will draw an ellipse.
This is illustrated in Figure 2. For the purposes of this article, "F1" will be the left focus point for a horizontal ellipse, or the top focus point for a vertical ellipse. Similarly, "F2" will be the right or bottom focus point, for horizontal or vertical ellipses, respectively.
Now that you've drawn your ellipse, you can move from arts and crafts to astronomy. In 1609, Johannes Kepler reasoned that the planetary orbits were not circular as once thought, but were elliptical with the Sun at one of the two focus points of the elliptical orbit. So, to simulate an orbit, you must be able to determine the location of the foci, and use one as the Sun.
Calculating the Foci
To calculate the focus points, you need to know a few basic things. Using correct terminology, the longest axis, going through the two focus points, is called the major axis. The axis perpendicular to this axis at the center of the ellipse is called the minor axis. Half the major axis, marked in Figure 2 by a, is called the semimajor axis. Half the minor axis, indicated as b in Figure 2, is called the semiminor axis.
Often, the first time learning a subject, it's helpful to work with terms you are comfortable with. To simplify, I'll use the terms "width" and "height," and "xRadius" and "yRadius" when discussing the major, minor, semimajor, and semiminor axes, respectively. There's still one more thing you have to figure out before you can continue.
To find the focus points of an ellipse, you must calculate the eccentricity of the ellipse. This is how elongated it is. Once you know the eccentricity of an ellipse, you can multiply this factor by the "xRadius" (or a in Figure 2) to get the distance from the center point to a focus point. This is marked by ae in Figure 2 and is the offset distance you'll use in your script to move the ellipse to the correct new location.
There are a few ways to calculate the eccentricity of an ellipse. The formula I'll use is:
(If you're interested in knowing how this formula was derived, check out the Related Resources on ellipses, left column.) Writing that in ActionScript, using the aforementioned simplified terms, the formula becomes:
e = Math.sqrt(1 - (yRadius*yRadius) / (xRadius*xRadius))
where Math.sqrt() is the Math object notation for square root.
Once you have the eccentricity of the ellipse, all you have to do is multiply that by the "xRadius" (in the case of our horizontal ellipse) to get the distance from the center of the ellipse to one of the focus points around which you can orbit your MovieClip. You may wish to orbit a MovieClip around a specific point, or it might even be the location of another MovieClip. For example, you might again want your example to show the Earth orbiting the Sun and the Moon orbiting the Earth.
But which focus point should you use? Since the ae (or xRadius * e) distance you just calculated is the same from the center to each focus point, the last step you need to take is to determine how to apply the offset. One method would be to use a conditional statement (if or switch, for example) to specify whether you add or subtract the offset from the center point of your ellipse. But there is a simpler way. If you use -1 to represent the left/top focus, 0 to represent the center, and 1 to represent the right/bottom focus, you can multiply the ae offset by this factor and subtract it from the desired anchor point.
For example, say you are placing your ellipse in the center of your stage at (275,200); you have an ellipse that is 250 pixels wide and 150 pixels tall. This results in an eccentricity of .8. Since your ellipse is 250 pixels wide, the "xRadius" is 125, or half the width. Therefore, the x offset would be calculated like this:
centerX -= (xRadius * e) * ellipseFocusPoint;
1) -1 for left focus point
275 -= (125*.8) * -1
275 - (-100)" - alex from Yahoo answers
At a greater distance, the gravitational force becomes less.
The only way to change anythings gravity is to change its' mass. (apex) Increase the mass of the object Decrease the distance of the object from Earth
Yes, the gravitational force decreases as the distance between two objects increases. This relationship is described by the inverse square law, which states that the force is inversely proportional to the square of the distance between the objects.
If you are referring to gravity, it will increase.If you are referring to gravity, it will increase.If you are referring to gravity, it will increase.If you are referring to gravity, it will increase.
Gravity is increased by two main factors: mass and distance. An increase in the mass of an object results in a stronger gravitational pull, while decreasing the distance between two objects enhances the gravitational attraction between them. Essentially, the greater the mass and the closer the proximity, the stronger the gravitational force.
bruh..
bruh..
me
If you increase the mass, you increase the gravitational force proportionally. If you increase the distance between two masses, you decrease the gravitational force between them by and amount proportional to the square of the distance.
To increase the electric force between two charged particles by a factor of 25, you would need to reduce the distance between them to 1/5 of the original distance. This is because the electric force between two charged particles is inversely proportional to the square of the distance between them. By decreasing the distance, the force will increase by the square of the decrease in distance.
Decrease the distance between them.
If the distance between two objects is decreased, the force between them will increase. This is in accordance with the inverse square law, which states that the force between two objects is inversely proportional to the square of the distance between them.
The magnituide of the gravitational force between two objects will increase if -- the mass of one or both objects increases OR -- the distance between their centers-of-mass decreases.
At a greater distance, the gravitational force becomes less.
To increase the electrostatic force between two charged objects, you can increase the magnitude of the charges on the objects or decrease the distance between them. Increasing the charge will directly increase the force, while decreasing the distance will increase the force through the inverse square law relationship.
The distance between you and the vehicle in front of you.
To increase the gravitational force between two objects, you would need to either increase the mass of the objects or decrease the distance between them. Gravitational force is directly proportional to the mass of the objects and inversely proportional to the square of the distance between them.