Animation Importing

So I’ve got this scene, see. And in this scene I’ve got this wind mill, see. And, well, I want the wind mill to be turning, y’know like the wind is blowing.

In C4D, I’m constructing the whole town together (including the windmill). I’ve animated a quick 60 second animation of the turning windmill hoping to loop it in Unity.

When I update my assets, I can define the 60 frames of the spinning windmill, but no matter if I loop frames or not, it doesn’t keep spinning.

So the question is: would it be better to bring in the animated windmill separately as an independent asset? And then, how the heck do I get this windmill to spin the whole time the game is running.

not sure why its not working, but why don’t you just make the blades a separate mesh script a rotate the transform in unity?

seems like a simpler more flexible way for basic movement like that.

Yeah, I’m sure you’re right. I just come from this from the 3D art end, so my gut solution is always to do things on the 3D authoring side.

I just gotta get better at scripting. sigh

Hey Adam, your strategy should work-thats set to loop in the inspector right?

heres a handy utility script I use for rotations:

var Bladespeed : Vector3;
function Update() {
    transform.Rotate (Bladespeed* Time.deltaTime);
}

HTH
AaronC

Worked perfect; thanks for that Aaron. Cool little script.