top of page

This project was a Physics module in which I was asked to calculate the trajectory of two different moving projectiles with Newton's and Euler's methods. I have chosen to do this in Unreal Engine but with C++.

​

​

For both projectiles I have given them the initial velocity of 0, gravity of -9.8/60(the acceleration divided by the frames) and a current velocity of 1000.0f/ 60frames in the X axis, 0.0f in the Y axis and 500.0f/60frames in the Z axis. However, the Euler version has vectors used for the velocity and acceleration updated at each frame whereas the Newton one has pre-set values.

I have set a debug message to show the position in the X axis as both projectiles are travelling to their end destination to see compare their positions at the end of the trajectory.

The Newton version gives an end position in the X axis of 1750.000122f, and the Euler version gives an end position in the X axis of 1733.332153f.

Physics Simulation , UE4 with C++​

physics1.png

​

Furthermore, i have made a video showing the cloth simulation demo part of this module, in which i use the cloth physics in UE4 and i code a random generated wind.

​

bottom of page