Shoot 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.

Got an Idea of Game Development? What are you still waiting for? Contact us now and see the Idea live soon. Our company has been named as one of the best Game Development Company in India.

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.