Skip to content

Tag: aframe

making two animations at once in A-frame

For example, by using camera rig, I want to move from A to B then B to C in just one single click. I normally write “to 0 0 0” in the event “onclick”. I want trigger both animations “1” and “1_1”. At the moment it is only the “1_1” that is triggered …

AFrame updating material.offset for each object

I made an AFrame component for creating hotspot, and I want to change material.offset.y of a hotspot when I hover it with cursor. So I first tried using AFrame animaiton attribute, but visibly, we can’t access to this property with animation. So I added a eventListener to the hotspot JS object and chang…

Disable the drag on screen in a-frame AR.js

I am trying to disable the drag feature of A-frame so that if a object is in front of your screen the user can’t just drag on the screen and remove it from your front to other place without even moving. Can anyone help me out with how I can do it? EDIT I have already tried look-controls-enabled=”f…