Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update()
- {
- curvePosition += rotationSpeed * Time.deltaTime;
- float rotationValue = rotationCurve.Evaluate(curvePosition % 1f);
- transform.Rotate(Vector3.up, rotationValue);
- }
Advertisement
Add Comment
Please, Sign In to add comment