0 votes

Hello, in that post I found the information that KinematicBody2D movement doesn't work with Joint2D, is it still the case?

https://godotengine.org/qa/51202/how-to-restrict-the-movement-of-kinematicbody2d-to-a-circle

in Engine by (20 points)

Also another thing, is it possible to make an empty circle collision shape?

1 Answer

+1 vote
Best answer

KinematicBody2D movement doesn't work with Joint2D, is it still the case?

Yes, that's still the case. And there's no reason why that should change. It's not like it's a bug! The whole point of KinematicBody2D is that they aren't affected by physics.

Is it possible to make an empty circle collision shape?

No. However, you can use a CollisionPolygon2D, set it's "Built Mode"-property to "Segments" and set enough vertices that it looks like a circle.

by (10,195 points)
selected by

Thanks for answering, really appreciate it. Basically I wanted to make swing ropes using those Joints however I decided to code my own system that creates an CollisionShape2D below the KinematicBody (player) that rotates accordingly to the angle between the player and the point on which the rope is hooked. After some tweaking it works really well, hopefully that approach will be useful to someone who reads it in the future.

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 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 webmaster@godotengine.org with your username.

Categories