Godot version: 3.2 Beta 2
I have a conundrum. I've been using a
KinematicBody2D for a player character and using
Area2D for obstacles that need to be avoided. When there is a collision, the obstacle emits a signal which in turn triggers the game over sequence.
Now, to move the player I have been using
_physics_process. This works great, but when I want to reset the player, I've been setting the
position manually to get the player back to the spawn point. Here is where the problem starts...
After, resetting the player position, it still collides in the position it was in when it collided originally and the signal is emitted again. Does setting the position directly not affect the physics engine underneath? Does anyone know of a way I could instantly change the position of the object? I'd rather not create a new instance each time if I can help it.
Any thoughts would be appreciated. Thanks :)