Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | bitrp | |
Old Version | Published before Godot 3 was released. |
For example, I have a bar and a ball on top of the bar. Both are KinematicBody2D.
the bar’s code:
func _fixed_process(delta):
move(Vector2(0, 0) * delta)
the ball’s code:
func _fixed_process(delta):
move(Vector2(0, 100) * delta)
Then the bar will be “pushed down” by the ball. Is this the expected behavior of KinematicBody? How to properly move the bar without effected by the ball? I know set_pos() is an option, but this way the bar cannot use its collision detection functions.