Using "Force" in unity 3D | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Using "Force" in unity 3D

Help me find out the best way to control a game object in unity using "Force"

11th Nov 2018, 6:48 AM
Rizqi Maulana
Rizqi Maulana - avatar
1 Answer
+ 3
Hi, I think that you should ask this question in the unity forum to get better answers and also study from the unity manual reference and API that you can find here: https://docs.unity3d.com/ScriptReference/ Also, you question is too generic. Better ask more specific questions on what you really need to do. Anyway to use the Force property on a given object you need first to attach a “Rigidbody” component to it, after that you create a script where you create a reference to the rigidbody component and then you can apply the force property to it. So go and study the rigidbody component and how to use it first, then look up for the force property!
12th Nov 2018, 12:30 AM
Sekiro
Sekiro - avatar