Move object to Point on Circle
Takes an angle, the (x,y,z) centerpoint of a circle, Entity, and Exec inputs, and moves the Entity to the point on circle with radius R (set using the yellow variable in the middle). Built to function on the x,y plane (flat), but can probably be adapted to other orientations by shuffling inputs and using the outputs that correspond to the new input scheme. Feel free to use any part of it in other prefabs. Can also remove the setPosition gate at the end and just output the x and y values. Includes interactable explanations of each part! Edit: oops! The red and green gates where we divide by 10,000 are there because I initially multiplied all of the numbers in the sine/cosine approximations by 10k due to precision issues (they were just going to near 0 otherwise).
- Published
- November 27, 2025 at UTC
- Updated
- November 27, 2025 at UTC
- Version
- 2
- Share code
25b-k3p-g6q