images

Chapter 15

3D Basics

What we'll cover in this chapter:

  • The third dimension and perspective
  • Velocity and acceleration
  • Bouncing
  • Gravity
  • Wrapping
  • Easing and springing
  • Coordinate rotation
  • Collision detection

Up to now, everything in this book has been in just two (and sometimes only one) dimensions, and you've created some pretty interesting animations. Now, let's take it to the next level.

Creating graphics in 3D is exciting because the extra dimension seems to make things really come to life. We move through the basics of programming 3D fairly quickly, and after that, we'll see how the motion effects discussed in the previous chapters can be ...

Get Foundation HTML5 Animation with JavaScript 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.