List of Listings
Chapter 1. Getting to know Unity
Chapter 2. Building a demo that puts you in 3D space
Listing 2.1. Making the object spin
Listing 2.2. MouseLook framework with enum for the Rotation setting
Listing 2.3. Horizontal rotation, not yet responding to the mouse
Listing 2.4. Rotate command adjusted to respond to the mouse
Listing 2.5. Vertical rotation for MouseLook
Listing 2.6. Horizontal and vertical MouseLook
Listing 2.7. The finished MouseLook script
Listing 2.8. Spin code from the first listing, with a couple of minor changes
Get Unity in Action 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.