From the course: AR for iOS Developers: RealityKit and Reality Composer

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add behaviours

Add behaviours - iOS Tutorial

From the course: AR for iOS Developers: RealityKit and Reality Composer

Start my 1-month free trial

Add behaviours

- In our first scene, we already have two 3D objects available. We have our Earth, and we have its Moon. But now it would also be cool if this moon would orbit the Earth as it does in reality. And we can achieve that by adding some behaviors. So I've opened up the behaviors panel here on the bottom by clicking on the behaviors button, in the top right corner. And by clicking on this plus button, I can add different behaviors. These are predefined behaviors that you could use that are actually exactly doing what it says here, so when I click on one of them it says that a tap is going to trigger an emphasis. And I have just clicked on my moon, this means that the Moon is going to be emphasized by this animation and it's going to occur by a specific trigger which would be a tab or since we are on the Mac a mouse click. So if we have a look at that, then I can click on the moon, and this would trigger this…

Contents