Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
unity addforce towards target
navigaid
Programming language:
C#
2021-05-02 02:16:50
1
Q:
unity addforce towards target
mattia.b89
Code:
C#
2021-03-29 06:04:27
rigidbody.AddForce((target.position - transform.position) * multiplicationFactor);
0
Tags
unity
target
add
Related
unity dynamically set hinge joint spring target position
unity c# on trigger enter with specific gameobject
unity how to add a bullet impact force
unity get velocity at point
how to make something addforce in the direction of something in untiy
unity addforceatposition
rotate object towards target rotation slowly unity
unity if gameobject is clicked
move towards target unity
unity vector3 smoothdamp not reaching target
New to Communities?
Join the community