function [x, y] = projectile_motion(p, t) g = 9.81; theta_0 = p.theta_0; velocity = p.velocity; height_initial = p.height_initial; x = velocity * cosd(theta_0) * t.^2; y = height_initial + velocity * sind(theta_0) * t - (1/2) * g * t.^2; end