Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 robertofantasy · Dec 26, 2015 at 12:47 PM · 2d-platformer2d-physics

How solve the 2d collider penetration problem ?

as you see in the video i have problem of circle collider penetrate in the 2d box collider i manipulate 2d physic setting but no diffrence link text

the other problem is bounciness on platform

and other thing that i want to add about bounciness on moving platform is that even i set bounciness of physic material to 0 for both colider the stone bounces on platform

capture-2.zip (185.9 kB)
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 Zoelovezle · Dec 26, 2015 at 02:07 PM 0
Share

CAn capture bit bigger video , i am not able to see the collision...

avatar image robertofantasy · Dec 26, 2015 at 05:47 PM 0
Share

no answer.unity3d.com dont support file bigger than 550kb but the video is clear and collision intersection is obvious

avatar image robertofantasy · Dec 30, 2015 at 01:30 PM 0
Share

about two years ago i post a question and get my replay right away but know about a week spent and no answer ,,, is that so hard

2 Replies

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

Answer by brunocoimbra · Dec 30, 2015 at 03:36 PM

How are you moving the platform?

The Unity's physics isn't the best option for platform games, did you tryied out using the Raycast system?

Here is a quite simple tutorial that made me easily understand how raycast can be useful in platform games: https://www.youtube.com/watch?v=z20wHJSXk98 (this is the part 6, that talk about moving platforms, but you will really want to watch it from beggining)

As an another option, you can make a script for the platform, so every time platform collides with the ball it makes the ball a child of the platform.

Something like that:

 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "ball")
     {
         other.transform.parent = transform;
     }
 }
 
 void OnTriggerExit(Collider other)
 {
     if (other.tag == "ball")
     {
         other.transform.parent = null;
     }
 }

Comment
Add comment · Show 4 · 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 robertofantasy · Dec 30, 2015 at 03:38 PM 1
Share

Thanks for your answer

avatar image brunocoimbra robertofantasy · Dec 30, 2015 at 11:14 PM 0
Share

If it helped you to solve your problem, mark it as the correct answer, so you will help other users to quick find the answer.

avatar image robertofantasy brunocoimbra · Jan 01, 2016 at 11:13 PM 0
Share

actually i had that tutorial and it is not completely help me cause i want use physic engine and i disappointed but better than nothing

Show more comments
avatar image
-1

Answer by robertofantasy · Dec 26, 2015 at 02:03 PM

IS THERE ANY ONE ?

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 robertofantasy · Dec 27, 2015 at 01:38 PM 0
Share

is there any one to solve my problem

how can ask unity company experts ?

avatar image Munchy2007 · Dec 27, 2015 at 11:55 PM 0
Share

You'll have to provide more information on how you have set up the objects, as this doesn't happen on a simple test scene I just tried it on.

avatar image robertofantasy Munchy2007 · Dec 28, 2015 at 08:30 AM 0
Share

i am creating a 2d platformer game . i have stone ball that is the player and a platform that animated in unity . the stone ball has circle 2d collider and the platform has rectangle 2d collider i have 2 simple problem

  1. when the player (stone ball) is on the platform and when the platform going up the two collider (ball stone and platform) kind of penetrate together i want to not happne

  2. when the ball is on platform and platform going down the ball bounces like when you play with ping pong verticaly

IS THAT CLEAR

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

35 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

Related Questions

C# 2D Jumping with AddForce doesnt work 1 Answer

2D Movement Mechanics for Platformer Game 0 Answers

I have a problem with Layermask Unity2D 0 Answers

Play and Stop Animation 1 Answer

Random increase of int in PlayerPrefs 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