- Home /
Two fingers touch to scale the Game object Vuforia
Am new to Vuforia, Is there any one who have done the similar approach of touching the game object and scaling it using two fingers?
Any help would be appreciated.
Answer by fafase · Jan 22, 2015 at 11:37 AM
It is just like any other scaling, you collect the magnitude of the vector from touch 0 to touch 1 and you modify the scale the model that Vuforia is rendering. Only thing being that your object is probably a child so you change the localTransform.
Thanks for your input. So can I use the normal Camera vector Ray? I thought Vuforia, has its own camera vector class possibly.
just call for the Camera.main.
You can also use On$$anonymous$$ouseDown/On$$anonymous$$ouseDrag
Answer by walidabazo · Apr 05, 2018 at 12:58 AM
tutorial to create Augmented Reality on unity with vuforia sdk to create multi image target and change size (Scaling ) to game objects (Image or 3D model or Text ) on run time show this video https://youtu.be/Y1LqtleBezc
Your answer
Follow this Question
Related Questions
Having trouble instantiating a gameobject with rotation 0 Answers
touch detection within area of collider of gameobject 1 Answer
How to scale objects individual with pinch zoom in ARCore and set a Min/Max scale? 1 Answer
How do you change size of an object by its units rather than scale? 1 Answer
Game Object as Touch Trigger 1 Answer