How can I move_and_slide() a RigidBody2D in Kinematic Mode?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MaaaxiKing

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

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.

p7f | 2020-06-25 17:52

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.

MaaaxiKing | 2020-06-25 18:53