Missing body_entered and body_exited signals

uaknightuaknight Posts: 42Member

Can someone explain to me why the signals body_entered and body_exited are found on Area2D and RigidBody2D, but not on KinematicBody2D and StaticBody2D?

I would actually have needed those on KinematicBody2D and StaticBody2D to be able to detect certain bodies which should not collide, but different handling should be applied to them.

Now it seems that it's needed to attach an additional Area2D to those, in order to catch special types of objects moving into them.

I would have preferred having the signals on the PhysicalBody2D instead, so that StaticBody2D and KinematicBody2D also got access to them:

Area2D -> signals body_entered, body_exited present

PhysicalBody2D -> lacking these signals
    StaticBody2D
    KinematicBody2D
    RigidBody2D -> signals body_entered, body_exited present 

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file