Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | storkoxa |
I have a RigidBody2D with collision and my main function is:
func _ready(): apply_impulse(Vector2(-30, 0), Vector2(0,-10))
the object moves, but it does not rotate as expected.
if I put exact the same code on the _process
func _process(delta): if (Input.is_action_pressed("press")): apply_impulse(Vector2(-30, 0), Vector2(0,-10))
it just works.
am I doing something wrong?
is that the right thing to do or should I just set the angular_velocity on the _ready function?