0 votes

Is it possible to have an object, such as a propeller or windmill blade, rotate 360 degrees on a loop using the animation player? It's easy enough to do using code, just wondering if I'm missing something.

in Engine by (530 points)

2 Answers

0 votes

I don't have access to Godot right now, so I can off, but looping can be found "track and timeline" controls under the animation panel: http://docs.godotengine.org/en/3.0/tutorials/animation/introduction_2d.html

by (111 points)

Yeah, I know about the looping, but if you try to make an object rotate 360 degrees continuously it goes from the last keyframe to the first in the opposite directionas the other rotation keyframes.

So, just go 0, 180, 360 (or 359 if needed).

Yea, use 359 (or -359) on the last frame (the count starts at 0, so 359 makes the 360th degree).
And two keyframes will do (start and end).

0 votes

It seems to work if i create a keyframe at the beginning with a rotation of 0 degrees and at the end (basically at the same time as the beginning since it's looping), with a rotation of 360 degrees.

by (530 points)
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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.