Skip to content

rotate_local_z reset #12179

Answered by irate-devil
ChanManChan asked this question in Q&A
Discussion options

You must be logged in to vote

transform.rotation.z is not the rotation around the Z axis.
To get the current rotation around Z you need transform.rotation.to_euler(EulerRot::XYZ).2.

I hope this helps :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ChanManChan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants