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

Position based gravity among other things #648

Open
wants to merge 5 commits into
base: 1.18.x/main
Choose a base branch
from

Conversation

DatCoder464
Copy link

No description provided.

@CLAassistant
Copy link

CLAassistant commented Dec 11, 2023

CLA assistant check
All committers have signed the CLA.

@Rubydesic
Copy link
Contributor

Thank you for the PR. Can you explain what this is used for, how it's used, and why it needs to be in VS2?

@DatCoder464
Copy link
Author

DatCoder464 commented Dec 12, 2023

I plan on using the current features for Malumian Skies and Universal
I did 2 things

  1. I added a more mainstream way to access the camera
  2. I made a gravity ship controller that also changes the position of the position (as well as there camera) which can be used by calling the .PostionGravity(postion, mass) (im chaning it to .addGravity(postion, mass)) and removing it with .removeGravity(position) from the PostionGravity class

its needed for another PR I'm working on for centrifugal forces as well as VSFX and Universal

@@ -128,6 +128,19 @@ private void setRotationWithShipTransform(final float yaw, final float pitch, fi
this.left.transform(this.rotation);
}

@Unique
public void addRotation(final Quaterniondc quaterniondc) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not add public functions to mixins, unless you are implementing an interface.

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

Successfully merging this pull request may close these issues.

4 participants