I am doing a planet simulation, and I have some planets with a vector field simulating the force it would feel at that location:
But as you can see, some of the arrows are too big. I essentially want to recreate 3blue1brown’s vector field:
Where he “arbitrarily shorten some that are too long”. https://www.youtube.com/watch?v=rB83DpBJQsE
However, there doesn’t seem to be a way to cap off arrow length, as the arrow length is based on the average value of the dataset. Help?
- Tried using “angles” argument for quiver –>
Still too long
- Tried to adjust the force based on a z axis:
This is based on an idea about projecting a 3d vector back down to 2d:
But due to scaling nothing actually happens: