Chapter 5

Object Interaction and Transformation

So far in this book, I’ve talked about shaders, windows, and volumes, and if you’ve been working in order, you’ve created some basic interactivity with a customizable snow globe. A virtual environment where you just flip switches and push buttons in a window isn’t much fun, though. You invested in this ecosystem to be able to interact directly with virtual objects.

visionOS offers the tools to provide control over objects—such as changing their size, location, or other attributes—but how do you turn them into completely dynamic scenes? With very little development effort, you can use intuitive gestures like tapping, dragging, and pinching to control your volumetric windows. Soon your 3D scenes ...

Get Apple Vision Pro for Creators: A Beginner's Guide to Building Immersive Experiences now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.