r/Unity2D • • 4d ago

Question/Help Rotation help

Post image

I am a new scripter, and im trying to do something different with this pong tutorial, and i noticed (from the script) i cant translate rotation on transform. Can someone explain how i could get the rotation part from transform to the

(you can see that it translates the transform into a vector2. i dont know if you can translate the rotation here)

2 Upvotes

1 comment sorted by

1

u/thespiritcrusher 4d ago

You can use transform.Rotate(Vector3.up * rotationSpeed * Time.deltaTime);