Hi, so I need some solution/advice....I have a script where the player (rigidbody) rotates to the left and right while also moving a little in the x-axis to the left and right.
rotate_y(-delta * PI/2)
apply_impulse(Vector3(direction),Vector3(-140,0,0) * delta)
rotate_y(delta * PI/2)
apply_impulse(Vector3(direction),Vector(140,0,0) * delta)
....so I need to turn off applyimpulse when only ("uiup" ) action is pressed.
what is the best solution .... create a function for this or boolean variable .... var impulseleft = bool (false)?
.....one side question...in the applyimpulse I have Vector3(140,0,0)....is 140 okay ,can it be so?