-
Notifications
You must be signed in to change notification settings - Fork 112
rotate the geometry instead of mesh to work with teleport component #21
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
rotate the geometry instead of mesh to work with teleport component #21
Conversation
… normal for the teleport component
Ah I forgot, if you want to test teleport on the hills, use the environmentGround class that was added to the ground entity in master:
|
I'm using this environment Hum, I want to teleport on mushrooms now. We need a class, maybe add a class |
I added a commit to add a environmentDressing class to the dressing meshs. |
I added a paragraph about aframe-environment-component in my fernandojsg/aframe-teleport-controls#28 PR |
You can currently test it on my sandbox repository https://github.com/vincentfretin/aframe-sandbox which includes a link to a built version. @ngokevin you may be interested in my working version of hot reloading, see the README. |
This is nice, thank you very much! 👍 |
Sorry, I have to revert this PR due to #22 . I'll give it a second check. Thanks anyway! |
No worries. If you can take the time to find the issue, I'll gladly appreciate it. |
@feiss With https://github.com/feiss/aframe-environment-component/pull/24 I don't manage to enable the physics and have this fix for teleport. I think I will take a different approach and modify the isValidNormalsAngle method in the teleport component to take into account the meshs rotation. |
…rated-ground rotate the geometry instead of mesh to work with teleport component
…rated-ground rotate the geometry instead of mesh to work with teleport component
We can now teleport on the hills!
The changes here is needed so the intersect face normal of raycaster is valid for the teleport component, i.e a vector
x: 0, y: 1, z: 0
instead ofx: 0, y: 0, z: 1
.There is a similar fix in fernandojsg/aframe-teleport-controls#29