0 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?

asked Jun 24 in Engine by MaaaxiKing (291 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 How to use this Q&A? before posting your first questions.