|
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 :)
(comments are locked)
|
|
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.
(comments are locked)
|

just sorted it.. :)
perhaps you could post your own solution as an answer to this question? It might help others in future.