- Home /
Adding torque in FixedUpdate
I am making little 2D rocket game where you can tilt you rocket left or right. Steering is done via AddTorque. And here comes the problem. When you add torque to tilt it on left side and then on right and on left.. and so on... It just gets too fast and it impossible to control it.
void FixedUpdate(){
rb.AddTorque(forward.position.y * velocity * -turn);
}
Velocity is being changed ovr time, and turn is just horizontal control output. How should i repare it or replace it? Ask me if it isnt clear. And to be honest i am getting crazy kinda ..
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612201314im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Calculating Sphere vs. Plane Friction 1 Answer
How does unity add torque 1 Answer
Understanding how torque is applied 2 Answers
Freeze Rotation constraints doesn't work. 2 Answers
Equivalent to this using torque 1 Answer