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

[XR] Fix teleportation backwards movement #8855

Merged
merged 3 commits into from Sep 2, 2020
Merged

[XR] Fix teleportation backwards movement #8855

merged 3 commits into from Sep 2, 2020

Conversation

RaananW
Copy link
Member

@RaananW RaananW commented Sep 2, 2020

Me: develop a feature.
User: "hey, this is not working"
Also me: "who developed this??? And how did it work so far?!?!?!"

TL;dr - fixed an issue with backwards movement in XR. It is now working as expected. Closing #8854

this._tmpRay.origin.copyFrom(this._tmpVector);
this._tmpRay.direction.set(0, this._xrSessionManager.scene.useRightHandedSystem ? 1 : -1, 0);
// This will prevent the user from "falling" to a lower platform!
// TODO - should this be a flag? 'allow falling to lower platforms'?
Copy link
Member

Choose a reason for hiding this comment

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

I like the flag approach but I do not have enough background to be a good judge :-) I let you chose

Copy link
Member Author

Choose a reason for hiding this comment

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

This is more "dev freedom" that an actual needed feature :-)
I will put it on future features to implement.

@sebavan
Copy link
Member

sebavan commented Sep 2, 2020

I let you merge when ready and I ll create the nightly after

@RaananW RaananW merged commit 0ee955a into BabylonJS:master Sep 2, 2020
@RaananW RaananW deleted the fixTeleportationBackwards branch September 2, 2020 11:22
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.

None yet

2 participants