Why Do Objects Go Through Each Other Sometimes?

Discussion in 'Technical Discussion' started by imonedesign, Mar 30, 2019.

  1. imonedesign

    imonedesign Boxer

    Joined:
    Oct 25, 2015
    Messages:
    73
    Likes Received:
    50
    Hi Everyone,

    I'm having an issue here, please check the gif file and let me know if there is a fix or it's a bug in Buildbox, here for example you can see the ball go through the wall if it launches fast enough.

    [​IMG]
     
  2. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    yes i have same problem on our last game curling. if you swipe to fast collision doesn't work.
    i add a speed limit, its now good solution but its better works now.
     
  3. imonedesign

    imonedesign Boxer

    Joined:
    Oct 25, 2015
    Messages:
    73
    Likes Received:
    50
    Thank you for your reply, can you please tell me how to add the speed limit? it sounds like a good solution
     
    landofgreendev likes this.
  4. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    it depends on your code, but basically i add a if code. its limit the velocity
    in our game _speedY is drag speed. so it should be min 2 and max 150. then swipe is working.

    if( _move && _speedY>2 && _speedY<150){
    // swipe or swing code run
    }
     
  5. Ionuts13

    Ionuts13 Boxer

    Joined:
    Jul 16, 2019
    Messages:
    7
    Likes Received:
    0

    Hello, I want to know how your ball is falling down like in your example. Did you use the slingshot asset? How I can set the gravity for the object to fall down. Please help me.
     

Share This Page