Цитата lentinant (
)
Потому что, по сути, ты его вверх и телепортируешь. Вообще, обычно прыжок делают с помощью rigidbody.AddForce
Спасибо, буду знать.
IlyaKos,
А тебе отдельное спасибо за подробности, сейчас опробую.Добавлено (18.02.2014, 18:10)
---------------------------------------------
Попробывал, ошибка:
"MissingComponentException: There is no 'Rigidbody' attached to the "player" game object, but a script is trying to access it.
You probably need to add a Rigidbody to the game object "player". Or your script needs to check if the component is attached before using it.
UnityEngine.Rigidbody.AddForce (Vector3 force) (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/NewDynamics.cs:671)
Move.Update () (at Assets/Move.cs:23)"