Not signed in (Sign In)

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorVanderwaal
    • CommentTimeMar 1st 2011 edited
     
    Not needed anymore.
    •  
      CommentAuthorTapir
    • CommentTimeMar 2nd 2011 edited
     
    "The second bug is that when the explosion of the bomb is static, it doesn't work anymore"
    Not very understand this.

    For the first bug. Maybe it is not a bug, it is a defect.
    Currently, box2d doesn't check the collisions between 2 static shapes.
    You have found this, right? So you use sleeping movable shape instead for entity#0.
    But unfortunately, box2d also doesn't check collisions between 2 sleeping shapes. :(

    Another point in box2d: when the 2 zero-velocity shapes keeping contact for some steps, box2d will set them both sleeping by default.
    So the block beneath the diamond and the diamond will be set sleeping after a while.

    That is why the block beneath the diamond and the diamond can't be destroyed. The collisions between them and entity#0 are not detected at all.

    So currently, you can call SetSleep (false) for the block beneath the diamond and the diamond manually each step to avoid these defect.
    Later, there are some world options for prevent shapes sleeping.-----------------
    My games: Tapir Games
    My phyards: Tapir@phyard
    •  
      CommentAuthorMadball (Advanced Member)
    • CommentTimeMar 2nd 2011
     
    "So currently, you can call SetSleep (false) for the block beneath the diamond and the diamond manually each step to avoid these defect."
    You can also uncheck 'Allow sleeping'-----------------
    LD35!
    •  
      CommentAuthorTapir
    • CommentTimeMar 2nd 2011
     
    I forgot the simplest solution. :)-----------------
    My games: Tapir Games
    My phyards: Tapir@phyard
    •  
      CommentAuthorTapir
    • CommentTimeMar 2nd 2011 edited
     
    Bad news, I just checked the code in box2d.
    Seems it is a bug of box2d: AllowSleeping is useless now.-----------------
    My games: Tapir Games
    My phyards: Tapir@phyard
    •  
      CommentAuthorVanderwaal
    • CommentTimeMar 2nd 2011 edited
     
    Thanks for the help Tapir. I fixed both things.
    But now I can't remove this discussion anymore or is it still somehow possible?
    •  
      CommentAuthorMathdude314 (Advanced Member)
    • CommentTimeJan 31st 2015
     
    I know this is old but, can you please show me the game this was?-----------------
    If less people are active, that will only make for even less activity. Start making those designs!
    Currently working on a one-round no-elimination quick RP game...
    •  
      CommentAuthorVanderwaal
    • CommentTimeFeb 1st 2015
     
    It was never finished.