I solved this a while ago by using LateUpdate() ... not sure if it is exactly a legitimate solution but it seems to work fine:
function LateUpdate () {
if (transform.rotation != Quaternion.Euler(0, 0, 0)) {
transform.rotation = Quaternion.Euler(0, 0, 0);
}
}
Attach this to your child object. Again, there may be a way better way to do this, so don't hold this to me.
Hope that helps,
Klep
↧