• 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 /
This question was closed Aug 09, 2015 at 07:02 PM by getyour411 for the following reason:

Other

avatar image
2
Question by morenodan89 · Apr 24, 2015 at 05:56 PM · character controller

Using Ethan's Third Person Controller in Unity 5, how can I get mid-air control?

I am making a platformer. Any way to modify Ethan's character controller to allow change of direction control while jumping?

Comment
Add comment · Show 6
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 Blooper64 · Aug 08, 2015 at 02:50 PM 0
Share

I would like to know how to move Ethan in mid-air as well

avatar image getyour411 · Aug 08, 2015 at 02:59 PM 0
Share

This question assumes quite a bit (Ethan?). If you want help from the UA community as a whole, you should post the relevant code. I assume it would be something like

 if(jumping)
  // add Input.GetAxis stuff here affecting moveDir

avatar image Blooper64 · Aug 09, 2015 at 06:18 PM 0
Share

its using the default character controller in unity 5

avatar image getyour411 · Aug 09, 2015 at 07:01 PM 0
Share

...which tells me nothing, as I don't. I'm going to close this as the OP isn't even participating, if you want to pursue this ask your own.

Show more comments
avatar image Devilwhale · Feb 10, 2017 at 11:08 PM 0
Share

Not for sure why this was closed, Ethan is the Standard asset third person controller character that comes with Unity. Comment out this line!! The animator drives movement based on animations, this allows movement in the air in this setup. Further changes would be need to get it working smoothly.

ThirdPersonCharacter.cs

 //m_Animator.SetBool("OnGround", m_IsGrounded);

note this does not remove m_isGrounded, which still works, also the anim speed controls movements and that is changed in this line. I modified like this to have slower air control.

 {
                 // don't use that while airborne
                 m_Animator.speed = m_AnimSpeed$$anonymous$$ultiplier*0.6f;
             }

Edit - Seeing the better way. To keep animations, applying extra velocity during !m_IsGrounded can be a smoother approach to this. Extra velocity can be translated from the existing move x and y to the object like the jump does during the fly times.

0 Replies

  • Sort: 

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

7 People are following this question.

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

Related Questions

Orientation of character controller relative to ground normal? 0 Answers

Controlling an animated character? 1 Answer

CharacterController vertical velocity is flickering on ground 0 Answers

how to make 2d character jump? 0 Answers

Look On Cursor Problem 1 Answer


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