I’m trying to add a rotation to an airplane which is moving with a Vector3 lerp. I would add a rotation at the plane when it start to move and return to the zero roration when it stop. How can i do?
I tried to add at the rigidbody.rotation Quaternion.Euler but it got fixed rotation at the object. I even tried other method af Quaternion but i haven’t found yet anything that works (better say “maybe i don’t know how to use them :)”)
On another note: you’re not using Vector3.Lerp correctly. Its parameters should be (start, end, T) (where T increases from 0 to 1 over the course of the lerp movement). Your parameters are (current, end, T). The way you’re using it will have the plane move very quickly at the beginning and then slow down towards the end.
I’m going to post you an image which can explain you what i would do:
I need to give a fluid Z rotation at the yellow ship when in movement from the Start point to the Stop point. All the things i tried never worked.
I’m a very beginner and i’ve been starting to lear unity for few months. I’ve been trying to customize the “Space shooter tutorial” to create a more complete game.