Orbiting About a Point in 2D
April 12, 2020
We can orbit around a point in 2D by using the trigonometry , and functions.
If we want to orbit around some point, for example, the origin at point , then at some angle , and radius , we can compute the point units away at angle from the origin point:
For any other origin point , then the point will be:
This can be useful for:
- Camera (the point radius away from origin) which orbits around a subject (at origin )
Here is a quick demonstration of how the orbit would look like in 2D: