Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 ChazAshley1 · Aug 26, 2014 at 05:41 PM · mecanimstuck

Mecanim: character has stuck near a wall

Hello. I have 4 animation clips.

  1. IDLE

  2. Run

  3. JumpUp

  4. JumpForward

When character jumps in wall direction and faces with wall in air - he stuck in air. I using animation moves (Apply Root Motion checked). Watch the video plz. https://www.youtube.com/watch?v=9LqhsRtuUyA&feature=youtu.be How i can fix it? Thanks!

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by LSPressWorks · Aug 26, 2014 at 05:47 PM

I couldn't tell if he fell off the wall when he moved away.Need a touch more data please.

In his jump animation, are you using the animation to lift him into the air, or are you using a scripted jump state to apply force upward?

Does it still occur with a larger or smaller collider on the character? What is the collider on the cube? Does it occur with collision detection set to dynamic etc?

Lastly, is gravity turned on for the level and the rigidybody in question?

Comment
Add comment · Show 4 · Share
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 ChazAshley1 · Aug 26, 2014 at 06:08 PM 0
Share

LSPressWorks. Yes, i use animation to lift him. Yes, it still occur with larger collider. Cube has Box Collider. Yes, it occure with collisition det. continuous and continuous dynamic. Yes, gravity is on.

avatar image LSPressWorks · Aug 26, 2014 at 08:06 PM 0
Share

Groovy. So as a general rule of thumb, the animation should be "heightless" in my experience, for this very reason. Ins$$anonymous$$d make the animation NOT lift him, and then in your code, when you trigger the jump apply if with something like this

  animation.jump
 //upjump
    Character.rigidbody.AddRelativeForce(0,120,0,Force$$anonymous$$ode.Impulse);
 //upjump with foward
    Character.rigidbody.AddRelativeForce(this.transform.foward * 90,120,0,Force$$anonymous$$ode.Impulse);


Forcemode is optional, but I prefer impulse for alot of junk.

avatar image LSPressWorks · Aug 26, 2014 at 08:08 PM 0
Share

P.S. I have found that getting the jump and fall to look just right and smooth is usually a matter of the drag property of the torso....

avatar image ChazAshley1 · Aug 26, 2014 at 08:36 PM 0
Share

But in official $$anonymous$$ekanim tuts noone use forces...

avatar image
0

Answer by ChazAshley1 · Aug 26, 2014 at 09:14 PM

Ano... I just use CharacterController instead Rigidbody+CapsuleCollider, all works fine :33

Comment
Add comment · Share
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

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

23 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

Related Questions

Rigidbody gets stuck on wall? 1 Answer

Stop Mecanim from affecting the camera? 0 Answers

4.5 Mecanim Additional Layers doesn't work? 1 Answer

Navmesh stuck on obstacle 0 Answers

2D Platformer Moving Platform Question 3 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