Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 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
1
Question by JNSVS · Jan 17, 2014 at 10:55 AM · colliderphysics2dplatformer

grouped edge colliders causing strange effects to physics 2d bodies

Hi, I am trying to make a 2D Physics platformer using Unity. I am generating level dynamically by instantiating the platform pieces which are placed very closly (which are tiny pieces with an edge collider.) I am trying to roll a Circular Sprite (with a Circle Collider & 2D Rigidbody ofc.) on this generated platform made of closely placed pieces. It all works fine when the Circle rolls slowly. As it picks speed. It starts bouncing (i m guessing at each joining point) - kinda like a bumpy road.

  • I have placed the platform pieces as close as visually possible.

  • All the pieces are at the same Y & Z co-ordinate.

  • I have even tried overlapping the pieces - still causes the same bounce.

  • If my path is straight (i.e. no curves) the roll works just fine. But I intend to have curved paths in my levels.

  • I intend to create a level editor as well - so using pre-defined levels wont help.

I am trying to get rid of the bouncy effect which appears as the Circle (wheel) moves forward.

  • Should I be using a different approach to generate the level? As in not using small pieces but some other technique?

  • Is there any way - If I can create a single collider for all pieces(even a polygon collider would be fine)? (Using a single collider and stretching it won't fullfill my needs- because The path may have curves as well, as illustrated in the image)

  • Should I avoid using the in built physics?

Any inputs would be greatly appreciated. alt text

1.png (15.6 kB)
Comment
Add comment · Show 1
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 pinkpigee · Aug 28, 2014 at 06:40 AM 0
Share

Hi. I'm facing the same issue only I'm using polygon colliders. It looked like the player was flickering in position. anyway, were you able to solve this? if yes, how?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by kacyesp · Aug 28, 2014 at 08:00 AM

I had this same issue when I was making my own player controller a week ago. It bounces when it moves more quickly and is going down slopes, right?

It's just because you're adding a horizontal force to your object and not enough downward force when moving down slopes. So you move horizontally faster than you do downward, and depending on how much and when you're adding horizontal force, it can look like the object is bouncing. Hope that makes you understand your bug.

My solution was just to use the normal to the slope that the object is currently on to calculate how much horizontal and downward force is needed to make the object move parallel with the slope.

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

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

20 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

Related Questions

2D physics settings for solid 2D objects with polygon collider 0 Answers

Triggering platform animation on colliding with Button 0 Answers

Raycast 2D hits sprite with collider, but returns error when not hitting any collider 2 Answers

Drag Player Object using Physics 2D 0 Answers

Physics2D.OverlapCircleAll and method call cause a huge drop in animation frames 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