aframe-teleport-controls | A-Frame teleport controls component | Augmented Reality library
kandi X-RAY | aframe-teleport-controls Summary
kandi X-RAY | aframe-teleport-controls Summary
A-Frame teleport controls component
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aframe-teleport-controls
aframe-teleport-controls Key Features
aframe-teleport-controls Examples and Code Snippets
Community Discussions
Trending Discussions on aframe-teleport-controls
QUESTION
I imported a house model as .gltf. From this house, I would like to retrieve the floor object and convert it into its own a-frame entity so that I can reference it later. I need to reference it in order to tell the aframe-teleport-controls component that it should use the floor as collisionEntity.
This is what I have so far:
...ANSWER
Answered 2018-Jan-02 at 20:49I think there is an issue with the timing. When the teleport-controls
are attached to the teleport
mixin, the #floor
is non-existent. Since i don't see any 'refresh' method in the documentation, I can think of two ways of dealing with this:
1) If the world is non-procedural, add an invisible box where the floor should be and make it Your #floor
.
2) a bit more legit, try adding the teleport-controls
when the model is done loading:
QUESTION
I want to use fernandojsg's teleport controls on my A-Frame project, but the way I want to use them is with shake.js, one shake to make the teleport line appear and another one to actually teleport where you selected.
I've seen the documentations and came across the startEvents and endEvent properties, and I want to map them into the shake event... for me it sounds like I have to create a custom component to do this, but I wanted to seek help first, to see if this is possible without doing it.
So far I've made this (glitch.com/ link) but it doesn't work so far (please note that I've got some other libraries there that make use of shake, mousedown, and similar events... my plan is to activate or deactivate them depending on how the user wants to move)
...ANSWER
Answered 2017-Nov-14 at 19:57Yes you will need a some JS or a custom component to get shake.js
and teleport controls to work together for two reasons:
shake.js
emits its events outside the A-Frame scene onwindow
whereteleport-controls
is not listeningshake.js
only emits one event type, and you need to differentiate forstartEvents
andendEvents
But it doesn't need to be very complicated:
QUESTION
I am using the aframe-teleport-controls and I was wondering what is the best way to track the position of the user.
I've been searching and I found two ways to do that.
1 - I use the position of the teleport controller which is almost the position of the user.
...ANSWER
Answered 2017-May-31 at 03:12The controller element (not the camera) will emit a teleport
event when the user teleports (found in source here). The easiest way to detect those events would be to listen on the scene element, as the events bubble up.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aframe-teleport-controls
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page