0 votes

Hi, I am right now attempting to implement a circular moving platform in a top-down 2D game, and I'm having a lot of trouble getting the rotation correct. Obviously, because it's top-down, the KinematicBody2D can't just stand on the rotating platform, it has to have the same rotation speed around the same center applied to it as the platform, but with a different position.

I've used the simplest solution for the rotation of the platform itself, basically just this.
For the life of me, though, I can't figure out the KinematicBody2D rotation. I've tried reparenting it to the Pivot node, but the center is not correct. I've tried using this solution, with the angle as 90, but the platform began flickering in and out of existence. I clearly am not thinking about this correctly. I know this has to have a simpler solution, I just can't figure it out. I can't just reposition the player to the platform because they have to be able to move as well.

Any help would be greatly appreciated! Thanks :)

Godot version v3.3.2
in Engine by (12 points)

Don't uderstand your problem. Do you have an image?

I've tried reparenting it to the Pivot node, but the center is not correct.

What does it mean?

Please log in or register to answer this question.

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.