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

I am workin on a slouls like game, and yesterday I tried to create an elevator to a dungeon. My caracter is a KinemyticBody3D and when the elevetor goes down, because of the gravity, the Player just hopping on the surface. I kind of know, how to solve it, but I am not sure, that it is the good way. So when the Player is standing on the elevator, it becomes th e child of the elevator. Else the Player will be free. Is it a good way, and how should I do it?

Godot version 3.4
in Engine by (18 points)

1 Answer

0 votes

I believe you should still use gravity and collision. Childing player to elevator is major interference of scene tree structure and You will surely encounter major bugs later on. Your player is hopping because of your movement code. You must have coded the animation to change when velocity.y points upwards. Make solid conditions for jumping and falling state, that will actually be true only when player is really jumping by its own force or falling when jump force is depleted. Physics engine will allow to push your player up by normal collision behavior.

by (8,188 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.