I have two GameObject, One with an Activate Trigger and the other One with a Deactivate Trigger. My 3D Object have a SmoothLookAt script to look at the camera, when the camera Activate Trigger the 3D object start to follow the camera, then the camera goes to the Deactivate Trigger then the 3D object stop right on the position where the camera touch the GameObject with the Deactivate Trigger.
I need that when the camera touch the Deactivate Trigger, the 3D object goes back to their original position, and not stays looking beside. How can i figure that.
I using this script, i need to created a new one or insert in this one?
Ok, i put it the script you did to the GameObject with a Deactivate Trigger, but my 3D Object goes to another positio, the name of my 3D object is cu. There is a way to specified the cu to goes to his start position.
All I can tell you is to Debug it. You need catch the position where you want it to be at, from the object you want that to be from, at whatever time you need it to be. If that changes mid game, then Start is not the place to put it. Since I dont know your game logic, I will not know where to put it.
I have Three GameObject, One with an Activate Trigger.script and the other One with a Deactivate Trigger.script, and another GameObject i rename it to cu with my 3D Object inside, and a SmoothLookAt script to look at the camera. The script is on cu. when the camera Activate Trigger the 3D object start to follow the camera, then the camera goes to the Deactivate Trigger then the 3D object stop right on the position where the camera touch the GameObject with the Deactivate Trigger.
I need that when the camera touch the Deactivate Trigger, the cu Object goes back to their original position, and not stays looking beside. Heres a pic for you ti understand.
OK, first, you want to know where the camera touches the collider of the Deactivate trigger, then you need to move cu to that point, then you need to move cu to its original position?
yes, because, cu stay looking beside when the camera touches the collider of the Deactivate trigger. I would like to cu return to its original position.
I need to move cu, from where its start. looking to the front. cu does not have any kind of animation, just the smooth look at script.
That really doesn’t fit what you are describing. You want that when the camera, touches 1 piece, your face starts looking at you. when it touches the next, it disappears. The whole time, your using a smooth look to make the face “face” the camera.
Now, the only point I dont get, is that you say… when I hit the next, I want to “move” the face to its original position, but nothing in your code says “move” it does say “rotate”
Are you asking it to return to it’s default rotation?
when I say (when I hit the next, I want to “move” the face to its original position) . Is the next invisible gameobject box, with the Deactivate Trigger.script. Is rigth behind the dog face. I call cu the bone that turns the head to look at the ARCamera.
This bone called cu, that rotate the dog neck, does not have any animation. Just have the starting position, that i show you in the video.