Question by
bagachkovartem12 · May 19, 2021 at 08:05 PM ·
unity 5rotatejumpbeginnerrotate object
How to smoothly rotate an object 180 degrees each time you press the spacebar in 3D
Hello,
I have already searched everything I could, and still did not find a suitable solution to my problem. The problem itself is that I need to make a 180 degree turn during the JUMP, and the only solution that I could find works every other time (that is, I pressed once - jump and turn, the second time - just a turn without a jump. I would be very grateful for your help.
Здравствуйте. Я уже обыскал все что только смог, и таки не нашел подходящего решения моей проблемы. Сама проблема в том, что мне нужно сделать поворот на 180 градусов во время ПРЫЖКА, и единственное решение которое я смог найти работает через раз (то есть раз нажал - прыжок и оборот, второй раз - просто оборот без прыжка. Буду очень благодарен за помощь.translated by: translate.google.com
Original:
Вот код:
![alt text](https://koobas.hobune.stream/wayback/20220613033937im_/https://answers.unity.com/storage/temp/180931-%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5-viber-2021-05-20-09-21-52.jpg)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613033937im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Drag - Rotate 0 Answers
Simple Rotate Script won't work! 2 Answers
Problems with jumping in Doodle Jump like game 2 Answers
I'm having a problem while jumping an object in Unity 5 0 Answers
How to make jump ball on grounds like game hop on App store? 0 Answers