Book Image

iOS Game Programming Cookbook

Book Image

iOS Game Programming Cookbook

Overview of this book

Table of Contents (19 chapters)
iOS Game Programming Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Physics


Physics is the branch of science concerned with the nature and properties of matter and energy. The subject matter of physics includes mechanics, heat, light and other radiation, sound, electricity, magnetism, and the structure of atoms.

How to do it

  • Time: Time is a scalar quantity (completely specified by its magnitude and with no direction) measured in seconds:

    Time = Distance / Speed

  • Distance: The standard unit of distance—a scalar quantity—is the meter, abbreviated to m:

    Distance=Speed * Time

  • Mass: Mass is a scalar quantity measured in kilograms, abbreviated to kg. Mass is the measure of an amount of something.

  • Velocity: Velocity is a vector quantity (a quantity that has magnitude and direction) that expresses the rate of change of distance over time. The standard unit of measurement of velocity is meters per second, abbreviated to m/s. This can be expressed mathematically as:

    v = ∆x / ∆t

    The Greek capital letter ∆, read as delta, is used in mathematics to denote a change in quantity...