- Home /
Question by
NoUJoe · Mar 17, 2015 at 06:57 PM ·
character controllerhitnormalcontrollercolliderhit
OnControllerColliderHit, hit.normal direction is unstable
I'm standing on a quad, a quad that is perfectly flat, the rotations are all 0. Yet the normal angle returned is very intermittent and it isn't always as it should be (0, 1, 0). When I test on an angled plane, its even worse. If I set the angle to 45 degrees, when standing still on the plane I get 0, 0.707, -0.707, which is correct (rotated on the x axis). However, when I move this fluctuates on a per frame basis. The angle of the slope doesnt change at all, I move in fixed update as to keep delta time consistent (and many other reasons). I don't understand why the normal is being returned wrong intermittently. It shouldn't be, every polygon on the plane is the same angle (it's a default unity plane).
Comment