Godot Version
v4.2.1.stable.official [b09f793f5]
Question
New to Godot. I’m trying to make a flappybird-like game as practice.
I’m encountering some strange behaviour however: when pressing space some up velocity is added, however, when the player object has a collisionShape2d (or polygon) the movement is like it’s bouncing on all kinds of invisible object. When removing the CollisionShape2D, the movement when pressing space is as expected.
See GitHub - Lhaaits/kittytoots-godot for the project. Run player.tscn and press space a couple times to reproduce the strange behaviour.
I’ve also added 2 screen recordings to the repo:
kittytoots-godot/blob/main/BugWithCollision.mov
kittytoots-godot/blob/main/WorkingWithoutCollision.mov
You can click download raw to the right to download them.
Does anyone know why adding the collisionShape is causing weird side effects?