object spin unity
void FixedUpdate()
{
gameObject.transform.Rotate(0, 0, +1)//Rotate(x, y, z) + = add one per update
}
object spin unity
void FixedUpdate()
{
gameObject.transform.Rotate(0, 0, +1)//Rotate(x, y, z) + = add one per update
}
unity always rotating object
public float speed = 50.0f;
void Update()
{
transform.Rotate(Vector3.up * speed * Time.deltaTime);
}
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.
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us