Attention | Topic was automatically imported from the old Question2Answer platform. | |
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 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