Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. 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):

twirlControl,
footControl and
handControl

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!

Hint:
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

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now