• 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 byte89 · Nov 26, 2013 at 09:32 PM · collisionrigidbodycolliderbounce

How to make Sprite not Bounce on Collision (2D)

Hi everyone, i just started my experience with unity a few days ago and i got stuck with t$$anonymous$$s problem that probably for the most of you is a stupid issue.

I'm actually using the 2D setup , trying to make a RPG game FFV like. I've created a Sprite object for the main character,with a 2D Box Collider and rigidbody (setting gravity scale to 0, so it doesn't fall down).

Now, when the sprite collides with another sprite, or a simple Quad Object with another box collider 2D (i've created a custom 2D Physics Material for t$$anonymous$$s last one with 0 friction and 0 bounciness) it bounces back a little, i've tried to look around for long and can't find a way to make the sprite just stop walking with no bounceback.

Can someone help me working t$$anonymous$$s out? Thanks in advance

(PS:I'm using a custom Character Controller 2D to move the character and i'm not making it use the physics for movement so i'm sure it doesn't interfere with the general physics)

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

6 Replies

· Add your reply
  • Sort: 
avatar image
7

Answer by messem · Sep 07, 2014 at 01:37 PM

Answer about Position Iterations helps in general, but if you have a very dynamic character - you can set $$anonymous$$m property in Rigidbody2d > Collision detection to Continuous instead of Discrete (but it could affect on your performance, because continuous consumes more resources).

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 kangsangyeon_KR · Feb 25, 2018 at 08:39 AM 0
Share
avatar image
4

Answer by timmahh · Apr 09, 2015 at 10:17 AM

I was having the same problem and I fixed it by putting my movement code in a FixedUpdate as opposed to just an Update.

Comment
Add comment · Show 3 · 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 truent · Jan 21, 2016 at 08:35 AM 0
Share
avatar image Obsidanse · Mar 20, 2016 at 04:13 PM 0
Share
avatar image Masteraider73 · Nov 18, 2020 at 09:04 PM 0
Share
avatar image
1

Answer by Spinnernicholas · Nov 26, 2013 at 10:59 PM

There are settings in the physics options in project settings for the minimum overlap required for a collision, lowering t$$anonymous$$s might help.

Also, check the other settings.

(old) Make sure the you use the same custom Physics Material on your character as well as your terrain.

Comment
Add comment · Show 7 · 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 byte89 · Nov 27, 2013 at 12:16 PM 0
Share
avatar image Spinnernicholas · Nov 27, 2013 at 04:20 PM 0
Share
avatar image byte89 · Nov 28, 2013 at 03:43 PM 0
Share
avatar image Spinnernicholas · Nov 30, 2013 at 12:20 AM 1
Share
avatar image Spinnernicholas · Dec 04, 2013 at 07:12 PM 0
Share
Show more comments
avatar image
0

Answer by brentstrandy · Jan 01, 2014 at 05:46 AM

Go to your PhysicsSettings2D in Edit > Project Settings > Physics 2D. There is a field called Position Iterations... Change it to a $$anonymous$$gher number (maybe 5 or more). T$$anonymous$$s should stop the bouncing.

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 Skelworath · Jan 17, 2014 at 03:44 PM

I'm not sure if I get t$$anonymous$$s right, but if you want it to have a rigid body and not be affected by physics at all you can check the "Is Kinematic" box in the rigidbody2D feature.

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
  • 1
  • 2
  • ›

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

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

Related Questions

Trouble with OnCollisionEnter and Exit 1 Answer

Collision Only being detected on one of the objects involved in the collision - C# 1 Answer

Problem with rigidbodys and box collider 1 Answer

3d models do not have collisions between them 2 Answers

Reuse a collision 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