|
||
This tutorial follows after Create your first Virtual World, so if you haven't gone through that tutorial you can get a copy of the park here. Animated objects look great in a scene, but unless you know what objects are animated it's pretty hard to get them going. One way of figuring out if a model is animated is hovering over the item in library. If the description has the word animated in it you're in luck. Also if you use our Publisher tool you will know what items you have published that are animated.
One item that has animation data in it is the Stone Windmill, so go ahead and add that into the scene. Compared to everything else we have in the scene, the windmill looks a little bit small. We want to scale this up to match everything else so go and use the uniform size tool. Now it's time to get this windmill animating. To do this we are going to go into the IMML editor by clicking on the tab in the bottom left of the scene that says IMML. The first line of IMML for the Stone Windmill should look something like this:
All we need to do is add in command for the animation and it is Animation="windmill_turn" where windmill_turn is the name of the animation. So your IMML for the Stone Windmill should now look like this:
Switch back into design mode and you will instantly see your windmill turning. It is important to note that the name of the animation is defined by the person who published it. So unless you published the content yourself, you may find it difficult to get objects animating. Check the MetaWSS information in the objects properties for a URI to link to and you may be able to contact the publisher to learn more about the object. |

