• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by WARW0LF · Oct 02, 2016 at 05:40 AM · animationunity 5mecanimdirectiontopdown

Mecanim problems, how do i make player idle in direction hes moving?

Hey, i'm new to unity and to using mecanim. I am simply trying to have my player move in 8 directions from a top down perspective. i have set up a 2d freeform blend tree with all 8 directions of a running animation, i also have an idle animation.

i cannot figure out, (and there isnt much material online to help as i have been searching for an answer for 2 days now), how to keep the player facing the direction he moves in, he moves in all 8 directions perfect but as soon as you release the keys he snaps back to facing upwards, which i assume is the start position for the idle animation.

i have tried to make 8 different direction idle animations and it works, he would stay facing the direction of travel, but this is very hard and complicated to rig up 8 directions and 8 idle animations, it got real messy fast ,is there a way to use this blend tree i have and make him idle in the direction he is travelling. bear in mind im new and just pointing me to a tutorial of vague content doesn't help, majority of tutorials i have watched so far don't mention this or are about something i don't want.

Sorry if this is simple, we all have to start somewhere.

Here is the blend tree i am using; alt text

blendtree.jpeg (371.5 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image artificial256 · Mar 22, 2018 at 01:37 AM 0
Share

I've been trying to figure this out as well without having to create all of those animations. I'm making a 3D top down game and it reverts back to the "front" facing idle animation. If anything I'm going to make it that way. Thanks tho confirming that it does work that way. Let me know of you found anything

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

171 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

2D Mirroring animations not working. Unity 5. 0 Answers

Animation on extra bones not working on humanoid 1 Answer

Can I copy moves from one animator to another using Mecanim? 0 Answers

play .anim when i shot a asteroid/gameobject 0 Answers

Is there a possibility to reuse substate machines in other animator? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges