|
I'm struggling with my 'look at' script. Everything works fine with my enemy AI - untill they collide with colliders other than the "player". I think the problem is the Raycast on the floor (anchor point is at the bottom of my enemys' feet), which causes enemy banking and pitching when they hit these colliders (being rigidbodies) which confuses them. Is there a way to prevent this from happening or resetting them the moment their p or b changes and forcing only heading rotation at all times? What I dont want is a 2D character, which worked but then colliders, falling etc doesn work at all. Thx S:
(comments are locked)
|

This is how it looks forward: