Forum rules - please read before posting.

AC Player script (Rotation)

Hello,

I'm working with a character in Unity with the player script attached using the Mecanim animation engine, with motion control set to automatic. I've encountered an issue where attempting to rotate the character through an external script doesn't work as expected. It appears that the rotation of the character is restricted, possibly due to the influence of the attached player script. Could you provide any insights or solutions to modify the character's rotation without conflicts from the player script?

Thank you in advance!

Comments

  • With "Automatic" motion control, AC will be in control of the character's Transform. You can set their rotation manually with the SetRotation function, however.

    If you're wanting to animate them turning, you can either temporarily switch to "Manual" motion control, affect the Transform as normal and then call SetRotation when switching back to Automatic - or just call SetRotation each frame.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.