Object does not move anymore after being still

Hi,

I’m facing a strange thing here: In a scene, I’ve got a sphere falling on a cube acting as a floor. By clicking in the scene, I’m able to rotate the cube. The sphere on top of it is supposed to move again, as soon as the floor gets an angle.

Here is the rotation code I’m using:

using UnityEngine;
using System.Collections;

public class rotate : MonoBehaviour {

	void FixedUpdate() {
		
		if (Input.GetMouseButton(0)) {
			Vector3 angle = new Vector3(0, 0, 2);
			transform.Rotate(angle);
		}

	}

}

Nothing special, really.

The problem is the following: as long as the sphere is not 100% still, I can rotate the cube, and the whole scene works as expected. BUT when the sphere is 100% still, any rotation has no effect on the sphere, it is “floating in the air”, as if it was disconnected from the scene.

I’m pretty sure someone here has seen this before. How can I solve this?

Thanks!

I had the same problem yesterday. Use this just before applying any rotation to the cube :
bola.GetComponent().WakeUp();