• 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 Tanapat · Mar 08, 2013 at 03:18 PM · playerslow

Why ? My character is fall to floor very slow

Why ? My character is fall to floor very slow

i want too make my character fall very fast

this is my character script

 var speed:float=5;
 var onFloor:boolean=false;
 var gravitypoint:float=1;
 
 function Update () 
 {
 
 if(Input.GetButton("Horizontal"))
 
 {
 
 rigidbody.velocity = Vector3 (Input.GetAxis("Horizontal")*speed,rigidbody.velocity.y,0);
 if (Input.GetAxis("Horizontal")>0) 
 {transform.localScale.x=-187;
 side=1;
 }
 else
 {transform.localScale.x=187;
 side=0;}
 }
 
 
 
 if(Input.GetButton("Jump")&& onFloor)
 {rigidbody.velocity = Vector3(rigidbody.velocity.x,-Physics.gravity.y*gravitypoint,0);}
 
 var hit:RaycastHit;
 var rayCastLenght=15;
 
 if(Physics.Raycast(transform.position,-Vector3.up,hit,rayCastLenght))
 { 
 if(hit.collider.gameObject.tag=="box")
 { onFloor=true;}
 }
 else
 { onFloor=false; 
 
 }
 }
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

5 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by Roman Alexandru · Jul 03, 2014 at 11:58 AM

If you are using an animator controller, you can disable "Apply root motion" under your caracter's Animator.

Comment
Add comment · Show 1 · 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 volkankk · Apr 07 at 09:35 PM 0
Share

Yes, it falls well when we disable "apply root motion," however, the animations don't make the player move; like walking animation, keep walking at the same spot.

avatar image
1

Answer by Statement · Mar 08, 2013 at 03:29 PM

Try changing gravity settings in Edit/Project Settings/Physics, or scale down your character.

Maybe your character is very very big? In that case everything appears to fall slower. If your character is 2 units tall, it would appear to fall faster. Obviously they would fall at the same accelerating rate, but bigger objects don't fall faster than smaller object or vice versa. They still travel the same distance. But for a big object to fall 0.5 meters in a second makes it look like it's not falling very fast at all. However a needle falling 0.5 meters makes it look like it's falling quite fast. I see your localscale is 187, this suggests that you have a character that is 200 meters wide. Perhaps something like 600 meters tall? It wouldn't appear to fall very fast.

Comment
Add comment · Show 1 · 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 Tanapat · Mar 08, 2013 at 07:44 PM 0
Share

Thank you ^^

avatar image
1

Answer by esaavedra76 · Oct 19, 2013 at 03:55 AM

i had the same problem. i didn't want to mess with the physics (like changing gravity, etc.). i noticed the issue was related to the animator controller. if your character behaves as expected when you remove the controller from the animator component, then try baking the root transform position (y), and reactivate your controller. this should solve your problem.

Comment
Add comment · Show 1 · 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 NAiLz · Jun 25, 2014 at 12:11 AM 0
Share

esaavedra76, what do you mean bake the root transform position (y)? In each animation that is in the animator controller? I tried that and it didn't work. I'd love to know the setting you're talking about.

avatar image
0

Answer by knuckles209cp · Oct 19, 2013 at 05:23 AM

check if there arent any colliders apart from the actuall player :)

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
avatar image
0

Answer by singhlaxman9761 · Apr 08 at 12:01 PM

Increase Mass property and Angular Drag value in Rigidbody Component.alt text


rigidbody.png (9.4 kB)
Comment
Add comment · Show 1 · 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 HellsHand · Apr 08 at 02:47 PM 1
Share

You really should read everything before you post, not only is this an 8 year old post but the answer you gave has already been given. You are greatly impacting your percentage of Correct answers if it matters to you at all.

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

18 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

Related Questions

Box collider acting weird. 0 Answers

On time slow down only player enable to move 2 Answers

How to slow player on x and z 1 Answer

game goes slow and characters fall of through the terrain 1 Answer

Slow play when hierarchy tab is open in the themo "angry bots" 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