Trajectories

Last Revision:
Version 1.2, 2009-09-24
Minor Bug Fixes.
(Full Revision History)
Build Requirements:
Mac OS X v10.6 Xcode v3.2
Runtime Requirements:
Mac OS X v10.6

This tool demonstrates how to execute a simple game physics engine for computing trajectory of a projectile within a framework of OpenCL kernels. The projectile trajectories are computed using parametric forms. Two types of trajectories are computed: when target and launch point are at the same level and when a projectile is dropped from a moving system. The inputs to the kernels are the constants initial time, time delta, and the initial velocity. Additionally, one kernel takes the initial angle as input, whilst the other takes the initial height as input. The outputs are position vectors, velocity vector, and speed. Additionally, since most game physics engines in use today are designed using C++, the framework here makes use of C++.