Faking a Formula For Movement Through Gravity

In summary, each player would provide three vectors that describe their current location, velocity, and time. Then each server would use these vectors to calculate the player's location in 1/30 of a second.
  • #1
AdmiralOlson
2
1
I have a strange question. It's strange because I don't need a correct answer. I need an answer that seems correct and leads to predictable results. I'm making a multiplayer computer game where the players fire cannons in outer space. The cannon shells will move through the gravitational fields of planets. If there weren't planets, I could sync the location of the shells on all the different computers by giving the velocity and position of the shell at a specific time to each computer. Because the movement is completely deterministic, and because the networking system I'm using provides accurate time measures across all the computers, each computer can calculate the location of the shell at the specified time. Complete accuracy and all I needed to do was send a velocity vector, a position vector, and a time.

There are planets though. The movement of the shells is still completely deterministic, but I don't know what the formula is. I'm hopeful I can still sync the location of the shells, this time by giving three vectors instead of two: the acceleration, velocity, and position of the shell at the specified time. Or is that only true if there is just one gravity source? With two gravity sources, is it impossible to summarize the movement of the shell with three vectors? And if it is possible, how do I derive the vectors? Simplifying the problem, the planets don't move.

There are potentially going to be dozens of cannon shells at any given time, so if I have to have each shell send its location to each player every tenth of a second, it's going to be way too much network traffic. I'm using Unity, which doesn't have a deterministic physics engine, so I can't count on each computer coming to the same results if they calculate the gravity separately.

Also, even if it is impossible to derive the three vectors, it might not matter. If I can come up with something that looks right, and is consistent enough that the player can predict where the shell is going to go, then I don't care if it's inaccurate. The players won't even notice.

Any ideas?
 
Physics news on Phys.org
  • #2
One possibility is to have only one gravitational source active on a shell at a time. As the shell leaves the sphere of influence of one planet and enters another you can switch the gravitational source to the new planet.
 
  • Like
Likes jedishrfu
  • #3
Thats not an unreasonable assumption as the interplay of multiple planets will effectively cancel in deep space or one planet will clearly dominate.

Kind of like the lagrange points where gravity is zero between the Earth and Moon.

https://en.m.wikipedia.org/wiki/Lagrangian_point
 
  • #4
jedishrfu said:
Thats not an unreasonable assumption as the interplay of multiple planets will effectively cancel in deep space or one planet will clearly dominate.

Kind of like the lagrange points where gravity is zero between the Earth and Moon.

https://en.m.wikipedia.org/wiki/Lagrangian_point

I'm sorry it took me so long to reply, but I actually did come up with a solution. The standard method for syncing projectiles in networked multiplayer games is to provide the same velocity, position, and time to each client, as I've stated. I can effectively do the same thing with projectiles being pulled by gravity as long as the location and strength of the gravitational sources, and the times when we calculate the gravitational strength, are the same. SO! I provide velocity, position, and time, and each client calculates the acceleration due to gravity at that specific time. Then we use the acceleration, velocity, and position to estimate where the projectile will be in 1/30 of a second, let's say. Because each client is using the same numbers, they should get the same results. Then we repeat the process. It should be deterministic.

Thanks Drakkith and jedishrfu for your comments. I'm going to keep thinking through your suggestion because it could lead to a much simpler method.
 
  • Like
Likes Negatratoron

Related to Faking a Formula For Movement Through Gravity

1. What is "Faking a Formula for Movement Through Gravity"?

"Faking a Formula for Movement Through Gravity" is a hypothetical concept that suggests manipulating the laws of gravity to create artificial movement. It is not a scientifically proven theory and is often used in science fiction or fantasy scenarios.

2. Can gravity be faked or manipulated?

Currently, there is no evidence to support the idea that gravity can be faked or manipulated. Gravity is a fundamental force of nature and is governed by the laws of physics. While there are ongoing studies and research on gravity, there is no known way to alter its effects.

3. Why is it important to understand gravity?

Understanding gravity is crucial for many aspects of science and our daily lives. It helps us understand the motion of objects, the formation of celestial bodies, and the behavior of matter on a large scale. Without gravity, the universe as we know it would not exist.

4. Is there any scientific evidence to support "Faking a Formula for Movement Through Gravity"?

No, there is currently no scientific evidence to support the idea of faking a formula for movement through gravity. While there are ongoing studies and theories about gravity, none of them suggest that it can be manipulated in this way.

5. Could "Faking a Formula for Movement Through Gravity" ever become a reality?

As of now, there is no scientific basis or evidence to suggest that "faking a formula for movement through gravity" could become a reality. However, as technology and scientific understanding continue to advance, it is always possible that new discoveries and theories may emerge in the future.

Similar threads

  • Programming and Computer Science
Replies
7
Views
1K
  • Introductory Physics Homework Help
Replies
3
Views
626
  • Calculus and Beyond Homework Help
Replies
5
Views
2K
  • General Math
Replies
11
Views
1K
  • Beyond the Standard Models
Replies
9
Views
585
Replies
4
Views
714
  • Science Fiction and Fantasy Media
Replies
3
Views
2K
  • Special and General Relativity
3
Replies
78
Views
4K
  • High Energy, Nuclear, Particle Physics
Replies
6
Views
1K
  • Classical Physics
Replies
8
Views
1K
Back
Top