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 lucax · Mar 30, 2014 at 04:52 AM · rigidbodyjumplevel-designvector3.project

Best way to make precise and exact jumps all time

What would be the way to make the rigidbody jumps perfectly same all the time ? In my project the space around the platforms would be empty so if the jumps are not precise and same I cannot design levels as the players would fall off inevitably.

So what would you suggest : AddForce() or velocity = new Vector3() or MovePosition or some other function ?

Comment
Add comment · Show 8
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 Benproductions1 · Mar 30, 2014 at 05:17 AM 1
Share

If you're using a rigidbody, it's simply a matter of using the function correctly rather than choosing which one to use.

avatar image lucax · Mar 30, 2014 at 05:58 AM 0
Share

Alright so since I am using a AddForce already to give the rigidbody its forward speed, what would be the correct use of correct function ?

avatar image Benproductions1 · Mar 30, 2014 at 06:18 AM 0
Share

You just need to make sure that the velocity change caused by your call to AddForce is always the same.

avatar image Benproductions1 · Mar 30, 2014 at 10:31 AM 1
Share

The jump and the landing are two different problems. Don't look for a solution for one in the other. It's completely impossible to answer your question more precisely than I already have, so if you want actual help, post more information as to your problem. Otherwise you can close the question.

avatar image T27M · Mar 30, 2014 at 03:16 PM 1
Share

You might get away with setting the velocity to zero when you collide with the platform.

     void OnCollisionEnter(Collision other)
     {
         rigidbody.velocity = Vector3.zero;
     }
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

22 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

Related Questions

Rigidbody AddForce Up - different value. 1 Answer

rigidbody.Addforce the force doesnt apply? 1 Answer

Keep Horizontal Momentum after Jump 2 Answers

How do I make my character jump? 1 Answer

Jumping from a conveyor belt with added velocity 0 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