"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team
for instance, do you want to display a Button somewhere on your view and then rotate the 3D model associated to an ImageTarget (for instance the Teapot model) when you press that button ?
using UnityEngine;
using System.Collections;
public class RotateButtonBheaviour : MonoBehaviour {
private bool mIsRotated = false;
private bool mMustRotate = false;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void U
OK, then a possible simple solution is to use only one script, attaching it to ARCamera (instead of attaching them to each teapot model), and then modify the code so to retrieve all your trackables in the "start()" method and then rotate them all in the "Update()" method, as s
rotate 3D with Button
Hi diwan,
can you be a bit more specific ? are you aiming to do that in Android ? iOS ? or in Unity ?
rotate 3D with Button
I modification from ImageTarget.unityPackage
I want rotate 3D with button.
rotate 3D with Button
Hi, can you provide a few more details ?
for instance, do you want to display a Button somewhere on your view and then rotate the 3D model associated to an ImageTarget (for instance the Teapot model) when you press that button ?
rotate 3D with Button
Hi, based on your inputs via PM,
I can suggest the following as a basic example showing the key concepts:
rotate 3D with Button
Thank You
rotate 3D with Button
You're welcome.
rotate 3D with Button
I attach the script to each teapot model of each target, but the only one model that works?
rotate 3D with Button
Weird, this should not happen. Can you post the script code here (if you modified it somehow ) ?
rotate 3D with Button
rotate 3D with Button
Thanks for the script (which looks fine, by the way);
rotate 3D with Button
yess, I need single button for rotate all 3D models.
rotate 3D with Button
OK, then a possible simple solution is to use only one script, attaching it to ARCamera (instead of attaching them to each teapot model), and then modify the code so to retrieve all your trackables in the "start()" method and then rotate them all in the "Update()" method, as s
rotate 3D with Button
SOLVED
rotate 3D with Button
Great, you're welcome!