Open noffjin opened 3 years ago
To rotate objects individually, you'd need to implement some type of "select" mechanism to determine which object you want to rotate. The way it was currently written (see https://github.com/8thwall/web/blob/master/xrextras/src/aframe/xr-components.js#L403-L418) any entity with that has the xrextras-two-finger-rotate
component will rotate when you touch the screen.
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.
Typically I add this after the model-loaded
event has fired: https://www.8thwall.com/8thwall/placeground-cursor-aframe/code/tap-place-cursor.js#L33
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