Orbit Around Null

Spins a layer around a null in a perfect circle.

Code

var r = 300;                 // radius
var ang = time * 120;        // deg/sec
var x = Math.cos(degreesToRadians(ang)) * r;
var y = Math.sin(degreesToRadians(ang)) * r;
[x, y];
orbitcirclemotion

How to Use

Apply to Position of a layer, parent to a 2D/3D null if you need to move the entire system.