In a nutshell: Trig functions.
Longer version:
- Cross you forward vector with world up to get your right vector.
- Cross that with you forward vector to get your proper up vector (or just use world up if this will always be the same)
- Divide 360 by the number of points (
n) on the radius you want, call thisThetaStep, set another localThetato 0 to start off - loop
ntimes, adjusting the centre point each time using trig functions onThetaand your up and right vectors, and addingThetaSteptoThetaafter each.
That, in a function:
Example usage:


