I am doing a numerical simulation of the gravitational pull of two different bodies (also collisions) and now I am stuck because I wanted to create an animation of the system over time but found 3 problems:
The first is that I cannot trace a sphere in the path of the particle.
The second is when I tested the command comet3()
t=0:0.1:50;
axis([-2 12 -2 12 -7 7])
axis square
view([-20 20])
comet3 (x(t),y(t), z(t), 0.1);
hold off;
where x(t) is the component x and so on, I don't see anything.
And finally the last problem is that from what I saw the most common animations are at constant speed but my system has variable acceleration, there would be some way to add that too?