The basketball is the Target child gameobject. This basketball is rotating around the player.
What I want to do is that the player will look at the basketball but to keep the view from my view like it is in the screenshot. I want to keep see the player a third person view but that player will look at the target not me not from my view.
Maybe yo put the virtual camera as child of the player ? but still it will rotate the my view camera at the target not the player.
It sounds like you want a 3rdPerson camera following and looking at the kid. You don’t want the camera to change when the kid rotates. The kid turns to look at the basketball. Is that right?
If so, then you probably want a 3rdPersonFollow vcam on the kid. You want to decouple the kid’s rotation from the camera position. The basketball is not relevant to the camera. You can see how to do that in this tutorial:
No what I want is the virtual camera to be parent of my player head and than using another regular camera.
Here is a screenshot :
And I will explain :
The virtual camera CM vcam1 is parent of my player head.
The virtual camera Look At is set to the Target(basketball).
At the bottom I have another regular camera.
The result is that I keep looking from the forward on the scene and the player head is rotating looking at the basketball.
Here is a very short video clip I recorded showing what I wanted to do and that is working so far :
It’s not perfect you can see in the end the player head is getting almost broken. but this is the idea in general of my goal. The player is looking at the target the third person character.
I need to find how to clamp the head rotation how to make that another virtual camera will stay looking at the scene like the regular camera or just stay with the regular camera for this. but this is what I’m trying to do :
Thanks or the extra info. What is the purpose of the vcam that is parent of the head? Just to follow the ball? In that case, it’s better to write a custom script for that, then you can do the rotation clamping. If you really want to keep the vcam then you can write a custom vcam extension to clamp the rotation. See Extensions | Package Manager UI website.