Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 Jun 22
sparklines
Close Help
  • 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 /
avatar image
0
Question by ultimateronsu17 · Aug 04, 2015 at 04:32 AM · animationmecanim

free motion in mecanim

how would I go about making a mecanim character controller based on movement like this???

video: https://www.youtube.com/watch?v=aH6AYuqQo90

I mean no tutorials help me on top of that people just use scripts that come with unity along with the animations and characters! non show their own animated characters movement and I'm at a huge rode block this is really frustrating me some one just explain to me how in freaking world do I set up the animations and scripts it base on free motion meaning the player character always walks forward no matter what direction they are moving on screen. I seriously can't find any help and I've been trying to this for about 4 months now some one please just tell me I swear no answers to other questions help I already know how to create my animations and set them up in unity's mecanim system just tell me how to do this here's another great example of what I'm trying to do >:(

video : https://www.youtube.com/watch?v=BtgIA5_6uV8

so please this is a desperate cry for help please just help me it's been 4 months and still can't find a solution

Comment
Add comment · Show 11
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 tanoshimi · Aug 04, 2015 at 05:49 AM 0
Share

It's unclear what you're stuck on... " meaning the player character always walks forward no matter what direction they are moving on screen" - this sounds like a camera problem, not an animation problem. But if you've been working on it for 4 months, at least show us what you've got at the moment.

avatar image ultimateronsu17 · Aug 04, 2015 at 04:21 PM 0
Share

I'm stuck on making a character move as in run in any direction without strafing as in the first and second link please just try explain the code I've set up my 3 animations in melanin I just need D's to know how i can script it to where 1 there is no strafing and 2 they move almost exactly like in the example

avatar image tanoshimi · Aug 04, 2015 at 05:38 PM 0
Share

Please don't post comments as answers. You've not shown us your animation controller, so I don't see how you're expecting us to point out where you've gone wrong: how is your blend tree configured? Are you using root motion?

I don't think any of the $$anonymous$$ecanim examples I've seen use strafing, so I can't work out why what you're asking for is different from the default behaviour anyway. The links you've pasted are just videos, so aren't that helpful. What specifically is it that you want to achieve that isn't implemented in, say, https://www.assetstore.unity3d.com/en/#!/content/5328 ?

avatar image ultimateronsu17 · Aug 04, 2015 at 06:14 PM 0
Share

ok so here's the codeing

UnityEngine; using System.Collections;

public class SoraScript : $$anonymous$$onoBehaviour { Animator anim; int jumpHash = Animator.StringToHash("Jump"); int runStateHash = Animator.StringToHash("Base Layer.Run");

 void Start ()
 {
     anim = GetComponent<Animator>();
 }
 
 
 void Update ()
 {
     float move = Input.GetAxis ("Vertical");
     anim.SetFloat("Speed", move);
     
     AnimatorStateInfo stateInfo = anim.GetCurrentAnimatorStateInfo(0);
     if(Input.Get$$anonymous$$eyDown($$anonymous$$eyCode.Space) && stateInfo.nameHash == runStateHash)
     {
         anim.SetTrigger (jumpHash);
     }
 }

}

avatar image tanoshimi · Aug 04, 2015 at 06:16 PM 0
Share

Yes... and where do you supply the parameter to the Animator controller to blend your turn left/right animations...?

Show more comments

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.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Mecanim 'Locking' my facial blendshapes 2 Answers

Mecanim Finish animation once but transition IMMEDIATELY on trigger 1 Answer

Expose a C# property for Animation Curve 0 Answers

Unity mecanim animations acting weird when used in unity 5 0 Answers

Mecanim animation gets stuck on the first frame 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges