hello, first of all thanks for the tutorial, it's brilliant. I wanted to ask you two things. in this case, the mouse only serves as a support or is it necessary to be connected to the PC? other thing, adding colliders to other objects have you tried to move more than one in the same scene?
@nicholas4297
7 жыл бұрын
+3dJeebs Just a technical question I want to ask on. Is it possible to make 2 controllers with cylinder to move the object. For instance, instead of when one controller's cylinder collides the object and mouse is triggered it can be move, I would like to have it move only when 2 controllers' cylinder signal collides the box? This is because I would like to use the mouse triggering for other application. Cheers and thanks in advance! * I have tried making different set of static variables where I can access it in the second controller script and instead of checking if mouse is triggered, I check for whether this two signal collides the box. However, I cant seem to make it work.
@tehralyn
7 жыл бұрын
Awesome job!! What's the name of the track in the back ground? It makes for such a dramatic touch! I love it!
@jeebs0808
7 жыл бұрын
N'to - Trauma (Worakls Remix)
@amitkumar-sh2bq
6 жыл бұрын
hello 3djeebs .i have a serious doubt. how it is possible to augment a object on marker without making him child of image target
@nicholas4297
7 жыл бұрын
+3dJeebs I have issues regarding the collision detection , i can't seem to activate anything when it collides, is there a tag i need to set for shell like the ones you did for obj? Cheers and thanks in advance!
@jeebs0808
7 жыл бұрын
when I was making this tutorial I also had some problems with it. make sure one of the object has rigidbody (is kinematic checked) and collider (trigger checked) and the other object has just a collider (trigger unchecked). then it should be ok.
@nicholas4297
7 жыл бұрын
+3dJeebs Will test it out soon and thanks for the quick reply! Loving your tutorials a lot as it gives me an in-depth insights of the capabilities of AR with Unity Vuforia and great understanding which helps me start developing an application for my Final Year Project :)
@leviassistec12
8 жыл бұрын
Hi jeebs0808 okay? His tutorial is very good, I was very impressed with the result, but I came up with a question. You can place more than one object at the same time to be able to drag? Imagine another hub of this with other colors that I can move them independently is that possible? I await your return. Tks
@jeebs0808
8 жыл бұрын
hi, if I would clone that object and try to move it (I would also need to change a script a bit), it would be possible to move them. I actually tried it and moved 5 of them, but there was a problem all of them would react even if I'm already dragging one object, so when I was dragging 5 of them at the same time I couldn't place each of them to a different place so they were always stuck together. this can be fixed of course. and yes you can make a script to move more than one object independently.
@leviassistec12
8 жыл бұрын
Jeebs0808 I tried to modify a little your script declaring the obj and the shell as array and giving id for each object to be recognized, but plumb so did not get a satisfactory result, I managed to move the objects independent of each other, but the object 1 activated the object 2. my script was that way. q think is wrong? using UnityEngine; using System.Collections; public class pickUpObject : MonoBehaviour { public GameObject[] obj; public GameObject[] shell; private int idObj; private int idShell; private int n; void OnTriggerEnter (Collider coll) { if(coll.tag == "obj") { idShell = 0; shell[idShell].SetActive(true); n = 1; } else if(coll.tag == "obj") { idShell = 1; shell[idShell].SetActive(true); n = 1; } } void OnTriggerExit (Collider coll) { if(coll.tag == "obj") { idShell = 0; shell[idShell].SetActive(false); n = 0; } else if(coll.tag == "obj") { idShell = 1; shell[idShell].SetActive(true); n = 0; } } void Update() { if (Input.GetMouseButton (2) && n == 1) { idObj = 0; Vector3 pos = obj[idObj].transform.position; pos = Vector3.Lerp (obj[idObj].transform.position, transform.position, Time.deltaTime * 30); obj[idObj].transform.position = pos; } } }
@giovannidamato5825
6 жыл бұрын
levia have you solve it? i need to move more different objects but all different so i can't clone them
@giovannidamato5825
6 жыл бұрын
i have solve. just duplicte pickup script in the same capsule object
Пікірлер: 13