Forum rules - please read before posting.

Rotation script conflicting with Character move/character face object

Hey Chris,

I've got a custom script that rotates a character too look at the player using RotateTowards via script (dynamic script used in LateUpdate) . Now as soon as I use any move action or face object action on the character, the script seems to conflict with AC's movement system.

My assumption is that the AC movement system is being constantly being applied to the character, hence it rejects what I'm telling it to do with my custom script. Is there something I can do to "clear AC movement" if my hunch is correct?

Thank you for your help!

Comments

  • Your hunch is correct. While a character's Motion control field is set to Automatic, AC will be controlling their rotation at all times.

    Call the character's SetRotation function to update the internal record of this rotation so that it gets applied by AC correctly. It may be that this can be used as an alternative to your script updating the Transform component directly.

  • Thanks chris, will try this soon, looks perfect

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.