
Calculating Trajectories
Tutorial
intermediate
+10XP
45 mins
(222)
Unity Technologies
In this tutorial students will learn about the parabola formed by projectile motion and use physics calculations to start programming an automatic attacking tank. Next, students will complete the programming of the AI tank by adding Unity physics back on the shells and automatically controlling when the tank shoots through code.
Resources
Languages available:
1. Introducing Parabolic Motion
In this tutorial students will learn about the parabola formed by projectile motion and use physics calculations to start programming an automatic attacking tank.
2. Solving a Parabolic Arc to Find the Hit Location
In this tutorial students will learn how to calculate the trajectory of an arc made by a moving physics object to determine a hit location.
3. Using the Unity Physics System to Hit a Mark
In this lecture students will learn how to use the trajectory calculations to have a Unity Physics system operated bullet hit its mark as well as create a simple AI character that will shoot at and follow an enemy.