Answers for "how to add force towards an object"

C#
0

unity addforce towards target

rigidbody.AddForce((target.position - transform.position) * multiplicationFactor);
Posted by: Guest on July-05-2020

Code answers related to "how to add force towards an object"

C# Answers by Framework

Browse Popular Code Answers by Language