Rays and Intersections
To prevent our avatar from walking through trees, we’ll start by imagining an arrow pointing down from our avatar.
In geometry, we call an arrow coming from something a ray. A ray is what you get when you start in one place and point in a direction. In this case, the place is where our avatar is and the direction is down. Sometimes giving names to such simple ideas seems silly, but it’s important for programmers to know these names.
Programmers Like to Give Fancy Names to Simple Ideas | |
---|---|
Knowing the names for simple concepts ... |
Get 3D Game Programming for Kids, 2nd Edition 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.