You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ground.addEventListener('click', (event) => {
// Create new entity for the new object
const newElement = document.createElement('a-entity')
// The raycaster gives a location of the touch in the scene
const touchPoint = event.detail.intersection.point
newElement.setAttribute('position', touchPoint)
newElement.setAttribute('rotation', `0 ${Math.random() * 360} 0`)
newElement.setAttribute('visible', 'false')
newElement.setAttribute('class', 'cantap')
newElement.setAttribute('xrextras-hold-drag', '')
newElement.setAttribute('xrextras-two-finger-rotate', '')
newElement.setAttribute('xrextras-pinch-scale', '')
newElement.setAttribute('scale', '0.0001 0.0001 0.0001')
newElement.setAttribute('shadow', {receive: false,})
newElement.setAttribute('gltf-model', model)
this.el.sceneEl.appendChild(newElement)
xrextras-hold-drag : working well
xrextras-two-finger-rotate: rotate all objects
xrextras-pinch-scale: when I scale object that getting invisible on the ground
I want
rotate individualy
scale individualy well
The text was updated successfully, but these errors were encountered:
As for your scale issue, you typically should add the xrextras-pinch-scale component after you have set the desired initial scale of the model, or pass it a scale parameter. In this component's init() it's saving the initial scale of the model, so if it's very small, it may look like it's disappearing, but really you are just scaling it relative to a very very small scale value.
I use Cursor Place Ground ( https://www.8thwall.com/8thwall/placeground-cursor-aframe )
and I declared a-scene like
and tap-place.js
xrextras-hold-drag : working well
xrextras-two-finger-rotate: rotate all objects
xrextras-pinch-scale: when I scale object that getting invisible on the ground
I want
The text was updated successfully, but these errors were encountered: