Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate options for globe gravity #101

Open
kring opened this issue Dec 8, 2020 · 4 comments
Open

Investigate options for globe gravity #101

kring opened this issue Dec 8, 2020 · 4 comments
Labels
research Explore an idea or prototype a concept and share the results

Comments

@kring
Copy link
Member

kring commented Dec 8, 2020

UE's gravity points in the -Z direction. It might be possible to change this, but even so it will point in just one direction. But on Earth, the direction of gravity is different depending on where on the globe you're located. Can we simulate this in UE?

Some starting points:

@nithinp7
Copy link
Contributor

As suggested in the PhysX documentation, maybe we could disable gravity and apply an independently calculated psuedo-gravity force to the center of mass for each object. If a cartesian coordinate is readily available for the object with respect to the center of the earth, perhaps the pseudo-gravity vector direction could point from the object coordinate towards the origin; so something like gravity = 9.8 * normalize(-obj.pos).

I am curious / worried about the numerical stability of this approach, resting behavior at the surface, as well as how dependable cartesian coordinates for objects are that are far away from the player.

@techdragon
Copy link

@nithinp7 There are a number of examples of how to do this on the Unreal Engine Marketplace. So the answer to "can we simulate this" is most definitely yes. You can check out the existing implementations if you want to see how stable various approaches to this are.

Free examples of implementing alternative "gravity" force vectors. (There are also more paid ones on the marketplace)

@kring kring changed the title Globe gravity Investigate options for globe gravity Apr 27, 2021
@kring kring added the research Explore an idea or prototype a concept and share the results label Apr 27, 2021
@kring kring added this to Needs Triage in Cesium for Unreal Jun 29, 2021
@kring kring moved this from Needs Triage to Backlog in Cesium for Unreal Jun 29, 2021
@darcyvdd
Copy link

darcyvdd commented Mar 4, 2024

Is this still potentially being worked on or is the advice just to run a custom solution as @techdragon mentioned?

@kring
Copy link
Member Author

kring commented Mar 4, 2024

We are not currently working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research Explore an idea or prototype a concept and share the results
Projects
Development

No branches or pull requests

4 participants