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

Problem with aframe 1.4.1 & Quest 2 #12

Open
Mrbside opened this issue Dec 27, 2022 · 4 comments
Open

Problem with aframe 1.4.1 & Quest 2 #12

Mrbside opened this issue Dec 27, 2022 · 4 comments

Comments

@Mrbside
Copy link

Mrbside commented Dec 27, 2022

The example quest-physics.html gives this error with Aframe 1.4.0

physics.js:666 Uncaught TypeError: Cannot read properties of undefined (reading 'clamp')
at i.tock (physics.js:666:36)
at bind.js:12:17
at i.tock (index.js:127:7)
at v.tock (a-scene.js:725:36)
at e.object3D.onAfterRender (a-scene.js:52:34)
at hl.render (three.module.js:28497:39)
at v.render (a-scene.js:751:14)
at bind.js:12:17
at three.module.js:28350:35
at r (three.module.js:12556:3)

@Mrbside
Copy link
Author

Mrbside commented Dec 27, 2022

Shane from SideQuest told me in the discord server;

Looks like stemkoski needs to update the example. They need to change THREE.Math to THREE.MathUtils on line 666 of physics.js in that example.

hope this helps

@Mrbside
Copy link
Author

Mrbside commented Dec 27, 2022

I can confirm that change in line 666 of physics.js solves the problem, but now the cylinder on the touch controls is in another position, cool thing about aframe 1.4.0 is now the buttons on the touch controls give visual feedback when touched or pressed.

322389152_845119820089881_2902298479236433942_n

@Mrbside Mrbside changed the title Problem with aframe 1.4.0 Problem with aframe 1.4.1 Jan 6, 2023
@Mrbside Mrbside changed the title Problem with aframe 1.4.1 Problem with aframe 1.4.1 & Quest 2 Jan 6, 2023
@Mrbside
Copy link
Author

Mrbside commented Jan 6, 2023

I am now using aframe 1.4.1 & Quest 2

Everything works fine with the same fix on physics.js and the offset of cylinder with raycast on controller

@Mrbside
Copy link
Author

Mrbside commented Jan 6, 2023

I also noticed sometimes when the scene just started if I press something on the controller I get errors like this one, on different buttons
Untitled-1

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

1 participant