RotateTowards ability in FirstPerson View is not working?

riste.tutureski

New member
Hello Respected,

We've created a RotateTowards ability for our UCC, that we are using when the character needs to be rotated if the direction where he is going is not allowed. Everything is fine if we are using the ThirdPerson view. But in FirstPerson view the ability is running (we can see that the code is executed with debugging), but the rotating is not happening and the character continues to walk in the direction that is not allowed. We need help to make it work for the FirstPerson view as well.

Please find in the attachments our RotateTowards class.

Thank you.
 

Attachments

  • RotateTowards.cs
    1.3 KB · Views: 2
Instead of setting the delta rotation you should set the desired rotation. On the aim ability you should also allow the character to look independently otherwise aim will override the rotation.
 
Top