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 officialandreicaleavalea · Aug 03, 2020 at 11:25 AM · collision detectioncollider2dcollision2d

2D colliders not work

,Hei i have a player and a wall with this Rigidbody2d and BoxCollider2d Rigidbody2D::Player { [BodyType]=Kinematic; [Material]=none; [Simulated]=true; [UseFullKinematicCont]=false; [ColisionDecetection]=Discrete; [SleepingMode]=StartAwake; [Interpolate]=none; }; BoxCollider2D::Player { [Material]=none; [IsTrigger]=false; [UsedByEffector]=false; [UsedByComposite]=false; [AutoTilling]=false; [EdgeRadius]=0; } Rigidbody2D::Wall { [BodyType]=Kinematic; [Material]=none; [Simulated]=true; [UseFullKinematicCont]=false; [ColisionDecetection]=Discrete; [SleepingMode]=StartAwake; [Interpolate]=none; }; BoxCollider2D::Wall { [Material]=none; [IsTrigger]=false; [UsedByEffector]=false; [UsedByComposite]=false; [AutoTilling]=false; [EdgeRadius]=0; } They have colliders and rigidbodies but does not collide,why?

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 nutraj · Aug 03, 2020 at 11:47 AM 0
Share

Firstly, please format the code section of your question, it's kinda hard to read your question currently :) And, is the player moving at a really fast speed? And also have you checked the collsion layers, to make sure if the player and the wall are able to collide in the first place?

1 Reply

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

Answer by Infenix · Aug 03, 2020 at 02:36 PM

Both of them are kinematic. You need to have one of them as a dynamic rigidbody to get the collision to happend. The dynamic one should be the player (assuming the player is the moving thing).

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 officialandreicaleavalea · Aug 03, 2020 at 02:41 PM 0
Share

Thank man! It's work,i put it on dynamic and the gravity at 0 cause i dont need it and it's work perfectly.

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

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

Related Questions

Can't detect colliders from Tiled 0 Answers

How do I make object only collide with certain objects based on position of collision within the collider? 1 Answer

Small 2D collider passing through other thin collider 2 Answers

Setting a Prefab Clone as the Child of another Object on Collision (2D) 1 Answer

multiple objects on oncollissionstay2d 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