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 elforama · Aug 08, 2013 at 03:59 AM · rigidbodysmoothconstantforcejerking

Rigidbody bumping on smooth surface

I'm trying to slide a friction-less cube (with a constant force and set velocity limit) along a flat path made from multiple friction-less cubes perfectly aligned. I have the cube that is sliding set to interpolate, but it doesn't stop it from jerking when it slides over from one cube to the next.

So my question is, how do I make my cube slide across multiple other cubes smoothly without jerking as it begins sliding onto the next cube.

-Thank you

Comment
Add comment · Show 3
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 lancer · Aug 08, 2013 at 04:04 AM 0
Share

If you could post some pictures it would help me to understand what is happening and how it is set-up.

avatar image Nanity · Aug 08, 2013 at 04:20 AM 1
Share

Can confirm this, seems to be a rigidbody behaviour. Not happening with a character controller.

lancer: If you allign two surfaces next to each other, with no gap and no overlap (perfectly alligned), any sliding rididbody starts jumping/jerking as soon as it crosses the seam.

Sliding can be achieved by enabling gravity and setting the physics material bounciness to 0.

I assume this has something to do with the surface normals, somebody should test it with calculated normals ins$$anonymous$$d of imported ones.

avatar image elforama · Aug 08, 2013 at 05:47 AM 0
Share

Here is a picture showing the set up. A bottom row of stationary cubes with one cube on top sliding along: alt text

example image.png (31.5 kB)

2 Replies

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

Answer by elforama · Aug 09, 2013 at 02:25 AM

I found a solution, I'll see how well it works over time.

On the moving cube I added a raycast. It projects downwards along the y axis. When it detects the cubes below it are less than a certain distance (very small) it sets the rigidbody's y velocity to zero. This seems to stop the jerking motion when it crosses over the seams.

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

http://lmgtfy.com?q=Unity+Rigidbody+seams

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 elforama · Aug 08, 2013 at 05:42 AM 0
Share

Thanks, "seams" helps searching a lot. I'll try out some of those links tomorrow and see if they help.

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

16 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

Related Questions

iOS game: Physics with ConstantForce 1 Answer

How to disable constant force over time? Rocket game 2 Answers

Rigidbody slowly moves 1 Answer

Making a surface have accurate friction 0 Answers

Why is my mesh acting like it has a bumpy surface? 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