How do i clone a kinematicbody2d?

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

I am trying to make a turret shoot lazers, and while i have the turret rotation down, i cant find a way to clone the kinematic body of the bullet on the position of the turret and its rotation to shoot. both the turret and the bullet are children on the same scene, if that is useful info

:bust_in_silhouette: Reply From: DDoop

Any object that inherits from Node has the member method .duplicate() which has a number of optional flags to choose from. Docs