How can I move target directly where is camera looking at ?
Is there any script in Unity or how can I create script for this ?
Thx
Again, it will depend on how you are moving the object. For a Character Controller:
cc.Move(Camera.main.transform.forward * speed * Time.deltaTime);
For a transform:
transform.position += Camera.main.transform.forward * speed * Time.deltaTime;
For a Rigidbody (in FixedUpdate()):
rigidbody.velocity = Camera.main.transform.forward * frameSpeed;
This assumes as in the video that the camera keeps the object at the center of the screen.