I am using transform local euler angles to reset the angle of an animated character when it hits the ground. It needs to be local as the character is a child of a rigidbody which follows the surface normal. The problem that I have is that it works sometimes and not others however it always recognizes the collision. I can not see any pattern to work out why. Here is my code:
Any ideas peeps, I am stumped... thanks :)
I have the same issue with localEulerAngles. Sometime the localEulerAngles works as aspect, sometime not, and the problem always occur when I publish as standalone project.
Tonight I discover the problem would occur if I didn't select any object in Hierachy tab, if I select anything (no necessarily select the rotate object) in Hierachy tab, the localEulerAngles work as desire.
I test on Unity 3.5. It seems it is a bug.
answered Apr 04 '12 at 04:29 PM