The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+1 vote

Is there a area_entered() signal for the KinematicBody2D like for an Area2D? How would I detect if a collision shape in a KinematicBody2D node has entered another body?

in Engine by (28 points)

2 Answers

+1 vote
Best answer

You don't need to add another area and collision.

A kinematic body only collides when you move it. When you do, you can then get collision information either with the returned value of move_and_collide() or by using get_slide_collision() if you're using move_and_slide().

For more information, read the kinematic body tutorial.

by (22,191 points)
selected by
0 votes

No, there probably isn't. I'm sorry. Still, you could just solve the problem. Create the following node tree: KinematicBody> Area> MeshInstance and CollisionShape. Well, I hope I could help you out. A nice week!

by (77 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.