How to move KinematicBody2D when i create it with PhysicsServer2D?

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

Like the title. To improve performance for my game, i have decided to create KinematicBody2D with Physic Server and link them with AnimatedSprited2d, but i don’t know how to access physic_process in the server to move em like moving with move_and_slide() in node’s _physic_process() (.

I’v tried to move the collisions with Physics2DServer.BODY_STATE_TRANSFORM. But with this the collision seem doesn’t work.

Is there any way we can achieve the behavior like the move_and_slide of KinematicBody2D in PhysicsServer2D.

Thank you very much <3