Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 GoodArcade · Aug 08, 2013 at 07:50 AM · rigidbodygravitydynamic

How can i make artificial gravity for Kinematic Rigidbody?

Hello peoples. I wanted to know if there was a way i can make a rigidbody character have gravity in a zero gravity environment.

I am using a rigidbody that is kinematic because it does not bounce back when it collides with another rigidbody. But now i cant use rigidbody.velocity because i get an error saying object must be non-kinematic dynamic. Anybody have a workaround?

Thanks, love Sprinkles c:

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by fardinnn · Aug 08, 2013 at 08:22 AM

i think you most use non-kinematic rigidbody and for less bounciness use physicmaterial

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 Marksmir · Aug 08, 2013 at 08:21 AM

Umm I am pretty sure kinematic makes the object stationary so no there isn't a way around it and why can't you just turn on gravity for that object and turn it off for all the other ones?

Comment
Add comment · Show 2 · 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 GoodArcade · Aug 08, 2013 at 04:16 PM 0
Share

I just want the rigidbody to act like a kinematic when it comes to interaction with objects, but be able to use forces like gravity. I have tried physics material and put bounciness to 0, but it still bounces. I guess im asking too much. :( The physics game engine is really great at replicating physics. With every action comes an opposite re-action, but i want to stop the re-action

avatar image GoodArcade · Aug 08, 2013 at 04:24 PM 0
Share

Ok i forgot to tinker with drag and angular drag. I bumped both up to Infinity and no bounce. Sweet.

avatar image
0

Answer by DeathPro · Jan 30, 2020 at 10:35 AM

 private void Update()
     {
         if (isMoving)
             groundTrans.Translate(Time.deltaTime * downSpeed * Vector3.down);
     }

I have an object to do like so. Have Rigidbody on it and it's toggled with isKinematic. I figured out that I can do a trick like acting as gravity effects the object. Of course, maybe there could be better ways but I just get things done :D

My object had "Mesh Collider" and was not Convex. Unity does not support any more non-Kinematic objects with non-Convex Mesh Collider. So I found this way to handle the situation...

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 jacksoncfischer · Nov 21, 2021 at 12:14 AM 0
Share

Any chance you could show me your variable values?

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

17 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

Related Questions

Multiple Cars not working 1 Answer

jump script : 2D 1 Answer

The rigidbody component in my object won't reset. 1 Answer

Gravity issue, player movement! 1 Answer

Rigid body speed not increasing. 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