Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | MrMonk | |
Old Version | Published before Godot 3 was released. |
Hello,
I have in my scene two objects a rigidbody2d (player) and a kinematicbody (bullet). The bullet is created from cod (preload scene and instance). The bullet shows up correctly, detects the collision with the player and frees itself from the scene. The problem that I have is that the method on_body_enter of he player is not registering the collision.
If I add the bullet into the scene in the editor is detected by the player. The player detect other bodies (staticbodies, kinematicbodies rigidbodies that are created through the editor, not from code).
Is this the intended use or is it a bug, or am I doing something wrong. I changed the Rigidbody with a KinematicBody, the kinematic did not registered the bullet collision either).
The bullet is fired at a 0.5 second interval with a velocity of about 500 (on x), so it is not very fast and never goes through the player.
I have played with the settings from the rigidbody, but nothing helped.
thanks !