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

Gravity should be a Vector2 #8

Closed
ArchLinus opened this issue May 7, 2024 · 2 comments
Closed

Gravity should be a Vector2 #8

ArchLinus opened this issue May 7, 2024 · 2 comments

Comments

@ArchLinus
Copy link

Currently gravity is a float. Some games like to change the direction of gravity for various reasons.

Alternatively, to not break compatibility, an additional gravity_direction vector can be provided. It might also be worthwhile to just grab gravity from the physics engine itself instead using its own specific gravity value.

@mphe
Copy link
Owner

mphe commented May 8, 2024

Absolutely, don't know why I didn't implement this as vector in the first place.

Will look into it in the next few days.

@mphe
Copy link
Owner

mphe commented May 10, 2024

Done in recent commit.
You can grab the build from the latest build workflow.
I will create a release and the update will be on the Asset Library in a few days.

It might also be worthwhile to just grab gravity from the physics engine itself instead using its own specific gravity value.

I'd rather not do this, because these are two completely different systems.
Another option would be to provide a kind of physics material resource for ropes that can be shared.
However, I'm not sure which properties should be included in such a material and which not.
It also only makes sense if there are a lot ropes of the same kind whose properties need to be changed dynamically at runtime.
Hence, this is a problem for the future when there is a certain demand for it.

@mphe mphe closed this as completed May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants