Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | NoctilucaScintillans |
I was trying moving a rigid body on tiles by adding force on it. but it only moved for a while, then it stopped. however, if i put the rigid body on something else that is not tiles(e.g. a static body), it will move normally. why is it so?
func _physics_process(_delta):
if Input.is_action_just_pressed("ui_right"):
add_central_force(Vector2(100, 0))