0 votes

I jus want to know that if there is a way to reverse .rotated().

unrotatedValue.rotated(angle) = rotatedValue
So I want unrotatedValue in this equation.

asked Apr 24 in Engine by tnaekc (15 points)

1 Answer

+1 vote
Best answer

Using the opposite angle maybe?

unrotatedValue = rotatedValue.rotated(-angle)
answered Apr 24 by Zylann (26,143 points)
selected Apr 24 by tnaekc

Thanks! It works

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.