Skip main navigation

£199.99 £139.99 for one year of Unlimited learning. Offer ends on 28 February 2023 at 23:59 (UTC). T&Cs apply

Find out more

Make it interactive [Exercise]

Time to bring out those interactive dancing shoes

Use this as an opportunity to test your understanding of how to implement interaction in AFrame

Exercise: Dance Dance Robot
Last week you worked on animating the robot as a part of the ‘Complex Motion’ exercise. We want you to revisit that exercise and bring in an interactive element. We have provided a file (in the See Also section), which has three additional spheres added to it, with the identifiers (id):

footControl and

Make the robot interactive by controlling the three independent dance actions i.e twirl, hand-related dance moves and foot-related dance moves. Use three interaction inputs to control them. Show us your interactive dance moves!

The animations, that make the bot dance, can be activated through event triggers. Use the interactive controls (either as gaze or mouse-click) to individually generate those events.

This article is from the free online

Construct a Virtual Reality Experience

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education