© Beau Nouvelle 2019
B. NouvelleSimulations in Swift 5https://doi.org/10.1007/978-1-4842-5337-3_5

5. Projectile Motion

Beau Nouvelle1 
(1)
Victoria, Australia
 

Up until now we’ve been able to avoid some of the more math-heavy simulations. While projectile motion can include some very intense calculations, I promise to keep things simple throughout this chapter (the really tricky stuff is coming later).

Projectile motion is the kind of motion experienced by objects that are thrown, ejected, or launched. If we know an object’s initial speed, angle, and direction of movement, we can perform some calculations to predict where it will end up.

Thinking About Gravity

Gravity affects everything around us. This applies to the entire universe. Newton’s first law ...

Get Simulations in Swift 5: Design and Implement with Swift Playgrounds 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.