Eonirr

Untitled

Jan 27th, 2026
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. void Update()
  2. {
  3. curvePosition += rotationSpeed * Time.deltaTime;
  4.  
  5. float rotationValue = rotationCurve.Evaluate(curvePosition % 1f);
  6.  
  7. transform.Rotate(Vector3.up, rotationValue);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment