+2 votes

I have a RigidBody2D set to Kinematic Mode. Its script extends RigidBody2D. I want to call move_and_slide() but this is not possible :( How can I solve my problem?

in Engine by (381 points)

You cannot call move_and_slide on a RigidBody2D as it simply isn't a method of that class. Would you explain a little what you want to achieve and why you are not using a KinematicBody2d if you need move and slide? You could also implement your own move_and_slide, but perhaps there is an easier solution for your use case.

I just liked to use a RigidBody instead of a Kinematic one, it's fairly useless if the kinematic mode doesn't feature all functions which a KinematicBody has.

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.