Can you flip a rigid body horizontally?

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

I was trying to have my character equip a sword which is RigidBody2D. He picks it up but when i flip my character the sword doesn’t…i tried apply_scale(-1,1) on the sword but it doesn’t seem to work. Anyone got ideas?

:bust_in_silhouette: Reply From: johnygames

As far as I know, apply_scale() takes one argument, which has to be a Vector2. So try this: apply_scale(Vector2(-1,1))

Lol i messed up my if’'s…thanks tho.

Yoseph | 2019-08-03 18:26