### Present Remotely

Send the link below via email or IM

• Invited audience members will follow you as you navigate and present
• People invited to a presentation do not need a Prezi account
• This link expires 10 minutes after you close the presentation

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

# Trigonometry in Game Development

No description
by

## Sarah C

on 3 March 2015

Report abuse

#### Transcript of Trigonometry in Game Development

Trigonometry in
Game Development

When are we ever going to use this!?
Trigonometry is used extensively in game development in order for the game to function.
Trig is used in writing the programs for games so that objects can move.
Also used for designing objects, characters, and sets.
Movement
Move an object
Move an object at a certain speed
Turn an object
Moving an object
Imagine you're designing a space ship game
You decide you want to move the ship to the red x
We know the radius and the number of degrees we want to go around the circle
When programming you need the x and y coordinates
In the code
Speed of an Object
Trig can be used to determine the speed that an object is moving
We know what speed we want to the beam to be shooting and angle a
In the code
Turning an Object
We can use the x and y speed values to find a
In the code
Digital Imaging
What is it?
Image taken from a photo or artwork, scanned, and then mapped onto a grid to form an image.

What is it used for?
Used in game development to make objects, characters, and scenery.
Digital Imaging Cont.
When mapped onto the grid there is an infinite number of points that can make up an image
A computer can only store so much data
A technique called
triangulation
is used to make the image detailed and accurate.
The triangles make up a frame instead of having individual points.
Citations
We want a laser beam to shoot out at a certain speed
We want to rotate the ship but we don't know how much to rotate it
Can be used to rotate an object
Paget Teaches. "Using Trigonometry in Games." Youtube, 23 Feb 2014. Web. 26 Feb 2015. <https://www.youtube. com/watch?v=yIebSnsTGPE&index=74&list=WL>.

Hollemans, Matthijs. "Trigonometry for Game Programming." Tutorials for Developers and Gamers. Raywenderlich, 24 Apr. 2013. Web. 26 Feb. 2015. <http://www.raywenderlich.com/35866/trigonometry-for-game-programming-part-1>.

http://www.slideshare.net/srishtibhola/trigonometry-13294954
http://www.mathworksheetscenter.com/mathtips/trigonometry.html
Game Programming
When programming a
game the positions
and speeds of objects
need to be written
using x and y

Finding the positions
and speeds of objects
involves the use of triangles

Therefore, it's necessary to use trigonometry to find x and y values and put it into code
http://scratch.mit.edu/projects/18233896/
http://scratch.mit.edu/projects/18179808
Full transcript