Movement with rigidbody
I am trying to make a script that will move the character using a rigidbody. I am going to make it a space game, therefore there is no use of gravity. What i tried to do is using force to move it but i could not make it work realistically. Should i work with add force or should i change the velocity. If i do so what are pros and cons with that?
Answer by Yoshinator2 · Nov 27, 2016 at 11:34 PM
You should use velocity in my opinion. However, whenever the player will move, they will keep moving until the velocity is taken away. To do this in the RigidBody component in the inspector, just set gravity to zero and then make a script for the velocity. If you have any other questions just ask. If this was what you were looking for, please accept the answer! Cheers!
Your answer
![](https://koobas.hobune.stream/wayback/20220612101544im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How can I get the player to face the direction it is going in a Unity 2D Game? 0 Answers
Face direction of a Vector 3 1 Answer
How to make an object go the direction it is facing? (Im new) 0 Answers
Input.GetAxisRaw always returns -0.6 1 Answer
[I still need help even though there is 2 replies] Help with shooter script 3 Answers