Forum rules - please read before posting.

Movement issue

Hello, I'm currently encountering an issue with the movement. When the player walks towards a trigger which includes cameras switch, the player keeps walking towards the same path, but when I rotate the player immediately upon entering the camera switch trigger, the animation rotates, but the direction doesn't. Please check the video below for more details. https://youtube.com/watch?v=w2x40mq9wCw
Here's the setting of my player control. https://imgur.com/a/aiW6BB9 All triggers are set to "Run in background"
I have been facing this issue since long time ago, but I didn't have the time to post it until now.

Unity version:2020.1.6
AC: Latest.

Comments

  • edited October 2021

    Can you share shots of your Settings Manager's Movement settings, as well as the Player's full Inspector?

    The Player maintaining their direction when changing angle - until the input direction changes - is intended. In your video, it looks like the angle is correct, but the movement is wrong.

    If you don't change input during/after the camera switches, does the Player move correctly? What if you rotate the Player a short time after, rather than immediately after the switch?

  • Can you share shots of your Settings Manager's Movement settings, as well as the Player's full Inspector?

    https://imgur.com/a/JyCCGso

    https://imgur.com/a/GwQz3Wn

    If you don't change input during/after the camera switches, does the Player move correctly?

    Yes

    What if you rotate the Player a short time after, rather than immediately after the switch?

    If I rotate the player immediately this issue will occur, but If I rotate it shortly after, the issue doesn't happen.

  • I cannot recreate such an issue on my end. Your Player Inspector is collapsed, however - I need to see the full details.

    We'll need to see if this is behaviour unique to your character. Temporarily drop Tin Pot, from /Assets/AdventureCreator/Demo/Resources, into the scene to override your Player. Does he exhibit the same issue?

  • I believe I know the source of the problem. It happens when the -apply root motion- in animator is uncheck

    However, tin pot uses root motion, while my character depends on AC player script movement to move the player.

    So, in order to recreate the issue simply uncheck apply root motion.

  • I still need to see your Player Inspector in full.

    Because Tin Pot's animation relies on Root Motion, unchecking Apply Root Motion will cause expected motion issues - it'll be necessary to unassign the Animator Controller as well for a comparison. Even with this, though, I cannot recreate an issue.

    Please PM me a .unitypackage with a sample scene and your character's assets.

  • I still need to see your Player Inspector in full.

    Check this image for full inspector:

    https://imgur.com/a/yLTqtTl

    Because Tin Pot's animation relies on Root Motion, unchecking Apply Root Motion will cause expected motion issues - it'll be necessary to unassign the Animator Controller as well for a comparison.

    That is true, since Tin Pot relies on root motion, you will need to also delete his animations which are the idle, walk and run. Once you do that he will be able to move around without animations but you will be able to encounter the issue.

  • Once you do that he will be able to move around without animations but you will be able to encounter the issue.

    Not on my end, I'm afraid. What are your input settings?

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.