Log in or register to post comments

addTorque does not work with ARCamera

July 24, 2016 - 3:04am #1


I am using the ImageTarget sample and I am adding an object with a rigid body that I want to rotate. The same exact prefab works fine in a different project but when I add it to the ImageTarget sample the rotation does not work any more. I am using:


float randomX = UnityEngine.Random.Range (10f, 100f);
  float randomY = UnityEngine.Random.Range (10f, 100f);
  float randomZ = UnityEngine.Random.Range (10f, 100f);

  Rigidbody bomb = GetComponent<Rigidbody> ();

  bomb.AddTorque(randomX, randomY, randomZ); 


Can you please point me in the right direction where to look and what to check.



Log in or register to post comments