Godot Version
4.2
Question
For the collision between my enemy and projectile, the enemy only disappears sometimes; not all the time. Why would this happen?
4.2
For the collision between my enemy and projectile, the enemy only disappears sometimes; not all the time. Why would this happen?
what are the projectile and enemy Node type?
Enemy is a CharacterBody2D and the projectile is a Area2D node
it’s because the bullet flew too quick? try slow down the bullet speed 10 times slower to see if it can actually detect properly
Oh yes that is working. Is there not a way to make the speed faster but still register? It’s okay if it doesn’t, just preferrable.
i would want to say to use rigidbody2d for the bullet, but it’s not an easy to control physics node
You can use raycasts starting from position of last frame to current position