Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# how to make object rotate forever

//Use FixedUpdate instead of Update for physics, rotation, and movement.
void FixedUpdate()
    {
        laserPointer.Rotate(x, y, z);
  		//Use your own rotation values to replace x, y and z.
    }
 
PREVIOUS NEXT
Tagged: #object #rotate
ADD COMMENT
Topic
Name
4+4 =