Rigidbody.velocity
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
The velocity vector of the rigidbody. It represents the rate of change of Rigidbody position.
In most cases you should not modify the velocity directly, as this can result in unrealistic behaviour — use AddForce instead Do not set the velocity of an object every physics step, this will lead to unrealistic physics simulation. A typical usage is where you would change the velocity is when jumping in a first person shooter, because you want an immediate change in velocity.
Note: The velocity is a world-space property.
Note: A velocity in Unity is units per second. The units are often thought of as metres but could be millimetres or light years. Unity velocity also has the speed in X, Y, and Z defining the direction. Additionally, setting the linear velocity of a kinematic rigidbody is not allowed and will have no effect.
Rigidbody.velocity
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
The velocity vector of the rigidbody. It represents the rate of change of Rigidbody position.
In most cases you should not modify the velocity directly, as this can result in unrealistic behaviour — use AddForce instead Do not set the velocity of an object every physics step, this will lead to unrealistic physics simulation. A typical usage is where you would change the velocity is when jumping in a first person shooter, because you want an immediate change in velocity.
Note: The velocity is a world-space property.
Note: A velocity in Unity is units per second. The units are often thought of as metres but could be millimetres or light years. Unity velocity also has the speed in X, Y, and Z defining the direction.
Rigidbody.velocity
Вектор скорости твердого тела. Он представляет собой скорость изменения положения твердого тела.
В большинстве случаев вам не следует изменять скорость напрямую, так как это может привести к нереалистичному поведению — вместо этого используйте AddForce. Не устанавливайте скорость объекта на каждом шаге физики, это приведет к нереалистичной симуляции физики. Обычно вы меняете скорость во время прыжка в шутере от первого лица, потому что вам нужно немедленное изменение скорости.
Примечание. скорость — это свойство мирового пространства.
Примечание. Скорость в Unity измеряется в единицах в секунду. Единицами часто считаются метры, но могут быть миллиметры или световые годы. Единая скорость также имеет скорость по осям X, Y и Z, определяющую направление.
Что такое velocity в юнити, я не нашел ответа в других источниках?
GmDvlpr, для разного. Например, можно поменять скорость объекта на противоположную. Хотя это будет выглядеть странно, но если очень хочется, то пожалуйста.
Но не понятно, какую проблему вы решаете. Лучше исходить от задачи и искать, что вам нужно для решения, а не брать фичу из юнити и смотреть, куда ее можно приткнуть.
«Сопротивление воздуха» игрового мира для конкретного объекта.
Например, в момент прыжка (3D-шутер от 1-го лица: нпр, Quake) — мы её поднимаем для игрока до момента, когда вертикальное ускорение станет равно нулю — когда игрок окажется в верхней точке (и затем, он будет падать вниз под силой гравитации).