does not cause object to rotate on the _ready function

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: 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?

:bust_in_silhouette: Reply From: metin

It could be a bug as mentioned here

yes, it is the same issue

storkoxa | 2018-06-21 20:07