you will be working towards creating a physics-based game using projectile motion formula.
You will develop a projectile system which shows the trajectory of a thrown item affected by gravity (9.81 m/s2) using an initial angle (in degrees) and force i.e. the strength of the throw) as inputs. The trajectory system will look the system from Angry Birds.
You will create and implement the necessary physics formula in C# and SFML. The focus is on your physics formula and implementation not on your code. However, your application must work flawlessly without any bugs or issues.
You will write an equation which determines the damage dealt by a grenade at variable distances from the center of the blast. The Projectile Editor must include at least two types of grenade, each with unique damage and blast radius variables.
1. At the center of the blast,full damage should be dealt.
2. At the precise edge of the blast radius,no damage should be dealt.
3. Between these points there should be a smooth fall-off in damage dealt.
4. Although a linear function will suffice, students looking to push
themselves are encouraged to explore more realistic fall-offs which may
be achieved through the use of quadratic functions.
Students will create their own Vector2 class which will allow you to do the following operations
1. Calculate the dot product between two vectors
[login to view URL] the distance between two vectors.
3. Normalize a vector2.
4. Calculate the magnitude of a vector.
5. Calculate addition, subtraction, multiplication, and division between two
vectors and a scaler number.
Students are to illustrate the relative size of each grenade’s blast radius and calculate the total floor area covered by each blast in square meters.
I can make the simulation that you are looking for. I have cleared Google Summer of Code 2017 by developing combat system of the opensource game terasology. Contact me if you are interested.