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
1
Question by magnetic992 · Feb 24, 2014 at 01:57 AM · animationmovementanimator

2D Animator Component makes my player stuck in space

Alright so I'm making a 2D platformer. Following the Unity2D tutorial video I decided to render out the sprite into multiple pieces and arrange them all together under an empty game object. I gave this empty game object a 2D rigidbody and a 2D box collider so that he can fall on to my level, as well as a script that makes him move back and fourth. All of this works fine.

Until I try to use the animator component to move parts of his body to animate his idle animation. Without the component at all, he falls into the world perfectly fine, is completely controllable, and all the colliders work perfectly fine. Whenever I attempt to animate any piece of his body, on play the animation works but the empty game object is stuck in the sky and refuses to move when prompted.

What is this problem and how can I fix it? If you need anything to help answer like screenshots or code, I can provide it.

Comment
Add comment · Show 4
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 Almith · Feb 24, 2014 at 02:46 AM 0
Share

Post the script. I have an idea. Not 100% though.

avatar image magnetic992 · Feb 24, 2014 at 05:49 AM 0
Share

Its actually not the script at all, I've completely removed the script component from the Empty Game Object housing my players. But as soon as I try to make an animation, the player floats unaffected by gravity.

avatar image magnetic992 · Feb 24, 2014 at 06:05 AM 0
Share

I figured out the problem, I had to uncheck "Apply Root $$anonymous$$otion". I didn't know what it did.

avatar image vovo801 · Mar 18, 2015 at 11:52 AM 0
Share

I actually had the same problem, but checking or unchecking apply root motion did not slove the problem for me. The character is still floating in space. Can you be more specific, what is it that you did to make it work. $$anonymous$$aybe, also something else?

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

21 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

Related Questions

help with animation and movement?,i want to sort out my animation in my movement? 0 Answers

A way to "freeze" the position of the animation? 1 Answer

Why don't my animations immediately change in Unity 2D? 2 Answers

Make animator rules apply to multiple sprites without all sprites with animator being effected by conditions. 1 Answer

2D Animation does not start 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