Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

fix: head locked surfaces sample #800

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: head locked surfaces sample #800

wants to merge 1 commit into from

Conversation

darde
Copy link

@darde darde commented May 24, 2020

This PR adds a few modifications to allow the HeadLockedSurfaces sample run

  1. Adds the webgl-ui library that provides the rotateQuaternion method
  2. Use the native JavaScript class Math to provide the trigonometric functions

Motivation (required)

The current HeadLockedSurfaces sample is broken, and there are a few asks in the community for a fix. There is an issue in the react-360 issues as well.

Here, a stackoverflow issue that I answered today.

Test Plan (required)

All unit tests passed.

image

Up and run the sample, then, go to http://localhost:8081/index.html and check the correct panels' behavior.

headlockedsurfaces

This PR adds a few modifications to allow the HeadLockedSurfaces sample run

1. Adds the webgl-ui library thats provide the rotateQuaternion method
2. Use the native JavaScript class Math to provide the trigonometric functions
@facebook-github-bot
Copy link

Hi @darde!

Thank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants