Hello, I’m new to Unity, and am looking for help.
I have a spaceship. I already have the code to turn it. transform.Rotate(0, direction * Time.deltaTime)
but what I don’t have, is trying to roll it side to side.
When I turn, I also want to the whole ship roll to that side. I already have a script set up to do this. When
it is turning left, my variable sideTurn = 15, and when turning right, my variable SideTurn = -15.
This does not work with transform.Rotate, because it constantly turns 15 degrees. I want it to slowly rotate towards 15 degrees, and stay there.
I’ve already done a bunch of research, and all the solutions have just turned my ship either directly down into the ground, or rotated well past 15 degrees.