I need a way to rotate the character in paper 2D.
does SetActorRotstion work ?, if so, how can i access ?
From your character, you can GetCapsuleComponent() and use one of the rotation functions (AddLocalRotation, AddRelativeRotation, AddWorldRotation).
Thank you for your comment :), now i have a little problem.
In the c++ class that attached to player, i added this :
GetCapsuleComponent()->SetWorldRotation(rotation);
But now it rotates everything in the world, except the player itself.
If it appears to rotate everything in the world, then your camera is attached to the component being rotated. In your camera component, under “Transform” click the drop-down for “Rotation” and change it to “Absolute Rotation”, that may fix your issue.
I tried to replace GetCapsuleComponent() with GetSprite(), now it works fine .
Thank you :))