ObjectiveShoot Target Linearly sample code.
Step 1 Sample Code
rigidBody.velocity = target.transform.position - transform.position;
I hope you found this blog helpful while Shoot Target Linealy in Unity. Let me know if you have any questions or concerns regarding Unity, please put a comment here and we will get back to you ASAP.
An entrepreneur who has founded 2 flourishing software firms in 7 years, Tejas is keen to understand everything about gaming - from the business dynamics to awesome designs to gamer psychology. As the founder-CEO of a company that has released some very successful games, he knows a thing or two about gaming. He shares his knowledge through blogs and talks that he gets invited to.