rigid body vs sprite rotation point

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jospic
:warning: Old Version Published before Godot 3 was released.

Hi,
I’ve inserted a sprite as child of a 2D Rigid body . From script I would rotate the parent item (Rigid body). But it seems that the center of rotation coincides with the origin of the 2D Node. Instead if I rotate from script only sprite, it rotates properly respect to its center. How should to do for rotating also parent respect to its pivot point ?
Thanks in advance and sorry for my poor english.
Regards
-jospic

Do I understand correctly that you want to rotate Rigidbody around the manually defined rotation point of it’s sprite child? As far as I know this is not possible, not sure what exactly is your setup but usually setting sprite position to 0,0 and checking ‘centered’ is a good idea for rigidbody2d->sprite setup.

kubecz3k | 2016-02-25 10:55

Perfect!. Thanks

jospic | 2016-02-25 11:01

:bust_in_silhouette: Reply From: kubecz3k

Pasting my tip from the comment as an answer since the question still has ‘unanswered’ status and author seemed to be happy with my suggestion:
Not sure what exactly is your setup but usually setting sprite position to 0,0 and checking ‘centered’ is a good idea for rigidbody2d->sprite setup.