Search Unity

Sprite in sprite[Resolved]

Discussion in '2D' started by simone9725, May 21, 2015.

  1. simone9725

    simone9725

    Joined:
    Jul 19, 2014
    Posts:
    234
    Hi,
    sometimes in my game I have a terrible visual effect as in the photo when there is a contact between objects How can I resolve?
    [type]: @adambuckner[/type]
     

    Attached Files:

    Last edited: May 26, 2015
  2. Gardes

    Gardes

    Joined:
    Apr 7, 2015
    Posts:
    46
    Looks like your collider is not setup correctly
     
  3. simone9725

    simone9725

    Joined:
    Jul 19, 2014
    Posts:
    234
    hat or ball ?
     
  4. Gardes

    Gardes

    Joined:
    Apr 7, 2015
    Posts:
    46
    Could be both or one of them. I dont see the colliders on your image, so I cant say.
     
  5. simone9725

    simone9725

    Joined:
    Jul 19, 2014
    Posts:
    234
    this is the collider detail
     

    Attached Files:

    • New.PNG
      New.PNG
      File size:
      86.8 KB
      Views:
      850
  6. Gardes

    Gardes

    Joined:
    Apr 7, 2015
    Posts:
    46
    Looks not perfect, but ok. I guess they are all true colliders and not marked as a trigger?
     
  7. simone9725

    simone9725

    Joined:
    Jul 19, 2014
    Posts:
    234
    yes they aren't trigger
     
  8. Gardes

    Gardes

    Joined:
    Apr 7, 2015
    Posts:
    46
    Then I have no idea, at the moment, sorry :(
     
  9. simone9725

    simone9725

    Joined:
    Jul 19, 2014
    Posts:
    234
    Don't worry I really appreciate your advices
     
  10. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    You need to check your setup against the setup in the lesson. If you follow the steps in the lesson, you should get working collisions. As you are adding a new item (the beach ball), you should also make sure that (with the exception of things like the "Tag") all of the settings are the same when comparing the new beach ball and the existing bowling ball.
     
  11. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    And Simone, this is me using a tag to get your attention: @simone9725

    This should add an alert to your alert list in the upper right of the Forum page.
     
    theANMATOR2b likes this.
  12. simone9725

    simone9725

    Joined:
    Jul 19, 2014
    Posts:
    234
    Yes I did. The probelm is also the Bowlingball in the project
     
  13. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    The bowling ball in the project works fine. If you find that when you recreate the bowling ball, it doesn't work correctly, you may be missing a step.
     
  14. simone9725

    simone9725

    Joined:
    Jul 19, 2014
    Posts:
    234
    I will check I will download the original project
     
  15. simone9725

    simone9725

    Joined:
    Jul 19, 2014
    Posts:
    234
    there is the same bug in 2d sample,if you move quicky the hat the ball is stuck
     
  16. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    Really? I've not seen that. What version of unity are you using and what machine. I'll try to reproduce this. It won't be until Thursday or Friday.
     
  17. legendz25

    legendz25

    Joined:
    May 30, 2014
    Posts:
    17
    @simone9725 Just wondering if it could it be a layers issue?
     
  18. ColossalPaul

    ColossalPaul

    Unity Technologies

    Joined:
    May 1, 2013
    Posts:
    174
    Hi, have you tried to set the physics to 'continuous'? See http://docs.unity3d.com/Manual/class-Rigidbody2D.html.

    If it's moving fast, it should use continuous, or you'll suffer from teleporting.
     
    simone9725 likes this.
  19. simone9725

    simone9725

    Joined:
    Jul 19, 2014
    Posts:
    234
    Thank you so much for answer especially colossalPaul.The problem was The rigidbody