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

[Feature] Extend the update_as_oneway_platform function to allow normal setting too. #752

Open
Ughuuu opened this issue Oct 14, 2024 · 0 comments · May be fixed by #753
Open

[Feature] Extend the update_as_oneway_platform function to allow normal setting too. #752

Ughuuu opened this issue Oct 14, 2024 · 0 comments · May be fixed by #753

Comments

@Ughuuu
Copy link

Ughuuu commented Oct 14, 2024

Right now, you are unable to set the normal of the update_as_oneway_platform function. For platforms that are rotated or where you want one way to be in a different direction, this is useful.
Also, it only works with first object being one way platform, not second one (in an intersection). In case the first object is player and second one is platform, the function needs some change to be used.

Also moved the cosinus computation outside of the function, in case someone doesn't wanna use angle but dot product directly (if they already know the value of cosine for that vector)

@Ughuuu Ughuuu linked a pull request Oct 14, 2024 that will close this issue
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 a pull request may close this issue.

1 participant